configure_admin_consent
Configure admin consent workflow for applications to manage access permissions according to Microsoft 365 security policies.
Instructions
Configure admin consent workflow for applications (MS.AAD.5.3v1)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- cisa-m365/src/index.ts:705-731 (handler)The handler function that executes the tool logic by patching the admin consent request policy via Microsoft Graph API to enable the workflow.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:200-207 (registration)Registers the tool in the list of tools provided to the MCP server.{ name: 'configure_admin_consent', description: 'Configure admin consent workflow for applications (MS.AAD.5.3v1)', inputSchema: { type: 'object', properties: {}, }, },
- cisa-m365/src/index.ts:203-206 (schema)Defines the input schema for the tool, which expects no parameters (empty object).inputSchema: { type: 'object', properties: {}, },
- cisa-m365/src/index.ts:343-344 (handler)Dispatcher in the CallToolRequest handler that routes to the configureAdminConsent method.case 'configure_admin_consent': return await this.configureAdminConsent();