Skip to main content
Glama
DynamicEndpoints

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

configure_admin_consent

Configure admin consent workflow for Microsoft 365 applications to manage access permissions and ensure compliance with security policies.

Instructions

Configure admin consent workflow for applications (MS.AAD.5.3v1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'configure_admin_consent' tool. It configures the admin consent workflow by patching the Microsoft Graph API endpoint '/policies/adminConsentRequestPolicy' to enable notifications, reminders, and set a request duration.
    private async configureAdminConsent() { try { // Configure admin consent workflow using Microsoft Graph API await this.graphClient .api('/policies/adminConsentRequestPolicy') .patch({ isEnabled: true, notifyReviewers: true, remindersEnabled: true, requestDurationInDays: 7, }); return { content: [ { type: 'text', text: 'Admin consent workflow configured successfully', }, ], }; } catch (error: unknown) { throw new McpError( ErrorCode.InternalError, `Failed to configure admin consent: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
  • Tool registration in the listTools response, including name, description, and empty input schema.
    name: 'configure_admin_consent', description: 'Configure admin consent workflow for applications (MS.AAD.5.3v1)', inputSchema: { type: 'object', properties: {}, }, },
  • Dispatch case in the CallToolRequest handler that routes to the configureAdminConsent method.
    case 'configure_admin_consent': return await this.configureAdminConsent();
  • Input schema definition for the tool, which expects an empty object.
    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