Skip to main content
Glama
DynamicEndpoints

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

enforce_pam

Enforce Privileged Access Management to control privileged role assignments in Microsoft 365 environments, implementing CSA BOD 25-01 security requirements.

Instructions

Enforce PAM system for privileged role assignments (MS.AAD.7.5v1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that implements the 'enforce_pam' tool logic by configuring Privileged Access Management (PAM) settings via Microsoft Graph API.
    private async enforcePAM() {
      try {
        // Configure PAM settings using Microsoft Graph API
        await this.graphClient
          .api('/policies/privilegedAccessPolicy')
          .patch({
            requirePAMForPrivilegedRoles: true,
            blockDirectAssignment: true,
          });
    
        return {
          content: [
            {
              type: 'text',
              text: 'PAM system enforcement configured successfully',
            },
          ],
        };
      } catch (error: unknown) {
        throw new McpError(
          ErrorCode.InternalError,
          `Failed to enforce PAM: ${error instanceof Error ? error.message : 'Unknown error'}`
        );
      }
    }
  • Registration of the 'enforce_pam' tool in the list of available tools, including its description and empty input schema.
    {
      name: 'enforce_pam',
      description: 'Enforce PAM system for privileged role assignments (MS.AAD.7.5v1)',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Dispatch case in the CallToolRequest handler that routes calls to the 'enforce_pam' tool to its implementation method.
    case 'enforce_pam':
      return await this.enforcePAM();

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