Skip to main content
Glama
DynamicEndpoints

BOD-25-01-CSA-Microsoft-Policy-MCP

block_high_risk_users

Automatically block users identified as high-risk to prevent unauthorized access and protect Microsoft 365 cloud services according to CSA BOD 25-01 security requirements.

Instructions

Block users detected as high risk (MS.AAD.2.1v1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the tool logic by updating the identitySecurityDefaultsEnforcementPolicy to block high-risk users via Microsoft Graph API.
    private async blockHighRiskUsers() { try { // Configure risk detection policy using Microsoft Graph API await this.graphClient .api('/policies/identitySecurityDefaultsEnforcementPolicy') .patch({ blockHighRiskUsers: true, riskLevelForBlocking: 'high', }); return { content: [ { type: 'text', text: 'High-risk users blocked successfully', }, ], }; } catch (error: unknown) { throw new McpError( ErrorCode.InternalError, `Failed to block high-risk users: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
  • Registers the tool in the ListTools response, including name, description, and input schema (empty object).
    name: 'block_high_risk_users', description: 'Block users detected as high risk (MS.AAD.2.1v1)', inputSchema: { type: 'object', properties: {}, }, },
  • The switch case in CallToolRequest handler that routes the tool call to the blockHighRiskUsers method.
    case 'block_high_risk_users': return await this.blockHighRiskUsers();
  • The input schema for the tool, which is an empty object indicating no parameters are required.
    type: 'object', properties: {}, },
  • Helper check in get_policy_status tool to report the status of high-risk user blocking.
    highRiskUsers: { blocked: securityDefaults.blockHighRiskUsers, compliant: securityDefaults.blockHighRiskUsers, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DynamicEndpoints/Automated-BOD-25-01-CISA-Microsoft-Policies-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server