complete_auth_methods_migration
Finalize the migration of authentication methods to ensure compliance with BOD 25-01 requirements for Microsoft 365 cloud services.
Instructions
Set Authentication Methods Manage Migration to Complete (MS.AAD.3.4v1)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- cisa-m365/src/index.ts:589-612 (handler)The handler function that executes the tool. It patches the '/policies/authenticationMethodsPolicy' endpoint via Microsoft Graph API to set migrationState to 'completed', returning a success message or throwing an error.private async completeAuthMethodsMigration() { try { // Set migration status using Microsoft Graph API await this.graphClient .api('/policies/authenticationMethodsPolicy') .patch({ migrationState: 'completed', }); return { content: [ { type: 'text', text: 'Authentication Methods migration marked as complete successfully', }, ], }; } catch (error: unknown) { throw new McpError( ErrorCode.InternalError, `Failed to complete auth methods migration: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
- cisa-m365/src/index.ts:168-175 (registration)Tool registration in the ListTools response, defining the tool name, description, and input schema (empty object).{ name: 'complete_auth_methods_migration', description: 'Set Authentication Methods Manage Migration to Complete (MS.AAD.3.4v1)', inputSchema: { type: 'object', properties: {}, }, },
- cisa-m365/src/index.ts:171-174 (schema)Input schema for the tool, which is an empty object indicating no input parameters are required.inputSchema: { type: 'object', properties: {}, },
- cisa-m365/src/index.ts:335-336 (registration)Dispatch case in the CallToolRequest handler that routes execution to the completeAuthMethodsMigration method.case 'complete_auth_methods_migration': return await this.completeAuthMethodsMigration();