Skip to main content
Glama
DynamicEndpoints

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

disable_password_expiry

Disable password expiration policies to maintain consistent access without periodic password changes, addressing MS.AAD.6.1v1 compliance requirements.

Instructions

Disable password expiration (MS.AAD.6.1v1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'disable_password_expiry' tool. It uses the Microsoft Graph API to patch the password policy, setting passwords to never expire.
    private async disablePasswordExpiry() { try { // Configure password policy using Microsoft Graph API await this.graphClient .api('/policies/passwordPolicy') .patch({ passwordExpirationPolicy: { passwordExpirationDays: 0, neverExpire: true, }, }); return { content: [ { type: 'text', text: 'Password expiration disabled successfully', }, ], }; } catch (error: unknown) { throw new McpError( ErrorCode.InternalError, `Failed to disable password expiry: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
  • The switch case in the CallToolRequest handler that routes calls to the disablePasswordExpiry method.
    case 'disable_password_expiry': return await this.disablePasswordExpiry();
  • Registers the tool in the ListTools response, including name, description, and input schema (empty object).
    { name: 'disable_password_expiry', description: 'Disable password expiration (MS.AAD.6.1v1)', inputSchema: { type: 'object', properties: {}, }, },
  • Defines the input schema for the tool as an empty object (no parameters required).
    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