Skip to main content
Glama
DynamicEndpoints

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

enforce_cloud_accounts

Enforce cloud-only accounts for privileged users to comply with CSA BOD 25-01 requirements for Microsoft 365 cloud services.

Instructions

Enforce cloud-only accounts for privileged users (MS.AAD.7.3v1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'enforce_cloud_accounts' tool. It patches the identitySecurityDefaultsEnforcementPolicy to require cloud-only privileged accounts via Microsoft Graph API.
    private async enforceCloudAccounts() { try { // Configure account settings using Microsoft Graph API await this.graphClient .api('/policies/identitySecurityDefaultsEnforcementPolicy') .patch({ requireCloudOnlyPrivilegedAccounts: true, }); return { content: [ { type: 'text', text: 'Cloud-only accounts enforced for privileged users successfully', }, ], }; } catch (error: unknown) { throw new McpError( ErrorCode.InternalError, `Failed to enforce cloud accounts: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
  • Registers the 'enforce_cloud_accounts' tool in the list of tools returned by ListToolsRequestSchema, including its name, description, and input schema (empty object).
    name: 'enforce_cloud_accounts', description: 'Enforce cloud-only accounts for privileged users (MS.AAD.7.3v1)', inputSchema: { type: 'object', properties: {}, }, },
  • Dispatches calls to the 'enforce_cloud_accounts' tool by invoking the enforceCloudAccounts handler method in the CallToolRequestSchema handler.
    case 'enforce_cloud_accounts': return await this.enforceCloudAccounts();
  • Defines the input schema for the 'enforce_cloud_accounts' tool as an empty object (no parameters required).
    inputSchema: { type: 'object', properties: {}, },

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