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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- cisa-m365/src/index.ts:705-731 (handler)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'}` ); } } - cisa-m365/src/index.ts:201-207 (registration)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: {}, }, }, - cisa-m365/src/index.ts:343-344 (registration)Dispatch case in the CallToolRequest handler that routes to the configureAdminConsent method.
case 'configure_admin_consent': return await this.configureAdminConsent(); - cisa-m365/src/index.ts:203-206 (schema)Input schema definition for the tool, which expects an empty object.
inputSchema: { type: 'object', properties: {}, },