Skip to main content
Glama
DynamicEndpoints

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

enforce_alternative_mfa

Enforce alternative multi-factor authentication methods when phishing-resistant MFA is not implemented, addressing Microsoft 365 security compliance requirements.

Instructions

Enforce alternative MFA method if phishing-resistant MFA not enforced (MS.AAD.3.2v1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the 'enforce_alternative_mfa' tool by updating the authentication methods policy to enable Microsoft Authenticator as an alternative MFA method.
    private async enforceAlternativeMFA() { try { // Configure alternative MFA using Microsoft Graph API await this.graphClient .api('/policies/authenticationMethodsPolicy') .patch({ policies: { microsoftAuthenticator: { isEnabled: true, isSelfServiceRegistrationAllowed: true, }, }, }); return { content: [ { type: 'text', text: 'Alternative MFA method enforced successfully', }, ], }; } catch (error: unknown) { throw new McpError( ErrorCode.InternalError, `Failed to enforce alternative MFA: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
  • Registration of the 'enforce_alternative_mfa' tool in the MCP server, including name, description, and empty input schema.
    { name: 'enforce_alternative_mfa', description: 'Enforce alternative MFA method if phishing-resistant MFA not enforced (MS.AAD.3.2v1)', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema for the 'enforce_alternative_mfa' tool, which requires no parameters.
    inputSchema: { type: 'object', properties: {}, }, },
  • Dispatch logic in the CallToolRequest handler that routes to the enforceAlternativeMFA method.
    case 'enforce_alternative_mfa': return await this.enforceAlternativeMFA();

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