Connect AI agents and workflows to Microsoft Entra ID: create, update and remove users and groups, manage members and licenses, and act on new users.
Book a demo
Microsoft Entra ID for AI agents and workflows.
engini lets your AI agents and workflows administer Microsoft Entra ID (formerly Azure Active Directory): create, update and delete users and groups, manage group members, and assign or remove licenses, with a trigger on newly created users. Joiners, movers and leavers run across your HR system and your Microsoft tenant, with every change on record. Connect from Claude, ChatGPT or Cursor over MCP, from your code, or build in Workflow Studio.
Connect Microsoft Entra ID to Claude, Claude Code, ChatGPT, Codex and Cursor: one engini MCP server, CLI or SDK, with only the Microsoft Entra ID tools you choose. How it works →
Codex, Cursor
audit log

in engini
Connect Microsoft Entra ID to Claude, Claude Code, ChatGPT, Codex and Cursor. One connection, only the tools you choose.
Looking for an MCP server for Microsoft Entra ID, or a way to let Claude Code or ChatGPT work in Microsoft Entra ID? Connect Microsoft Entra ID to engini once, choose the Microsoft Entra ID tools each agent may use, and add engini to the AI client you already work in.
Connect Claude to Microsoft Entra ID
Create an MCP server in engini with your Microsoft Entra ID connection and only the tools you choose. In Claude, open Settings, Connectors, Add custom connector, paste the server address and sign in through engini.
Claude and your business systems →Claude Code and Microsoft Entra ID
Add the same server with claude mcp add --transport sse and sign in with /mcp. Or install the engini CLI and let Claude Code run Microsoft Entra ID tools from the terminal.
ChatGPT and Microsoft Entra ID
Add the engini MCP server to ChatGPT as a custom MCP server, where your ChatGPT workspace allows them, and sign in through engini. ChatGPT sees only the Microsoft Entra ID tools on that server.
ChatGPT and your business systems →Codex and Microsoft Entra ID
Install the engini CLI (npm install -g @engini/cli) and Codex runs Microsoft Entra ID tools from the terminal, with machine-readable output. The engini skills plugin for Codex builds engini workflows from a plain-language request.
Cursor and Microsoft Entra ID
Add the server address to .cursor/mcp.json and sign in through engini on first use. VS Code and other MCP clients take the same address.
Python, TypeScript or REST
The SDK hands OpenAI and Anthropic models the Microsoft Entra ID tools in the format they expect and runs the ones they pick. The REST API calls the same tools with no model in the loop.
SDK guide →Every client goes through the same Agent Policy: the toolset decides which Microsoft Entra ID tools it may call, credentials stay in engini, and every call is in the audit log. Setup for each client: MCP client setup.
What your agent can do in Microsoft Entra ID. Every tool is one you allow or leave out.
The Microsoft Entra ID tools in engini, grouped by what they change. Read tools are safe to hand out widely. Write and delete tools go only to the agents that need them.
Read
Read users.
Read groups and their members.
See licenses held and available.
Write
Add and change users.
Build and change groups.
Give a user a license.
Delete
Remove a user or a group.
Take away a membership or a license.
Triggers
New users in your tenant.
A trigger starts a workflow, and a workflow can include an AI agent step. In Code, a trigger delivers the event to your own endpoint.
Connect your AI agent to Microsoft Entra ID. Four ways in, one set of permissions.
Claude, Claude Code, ChatGPT, Cursor
Create an MCP server in engini with your Microsoft Entra ID connection and only the tools you choose. Add its address to your client and sign in through engini. There is no key to copy.
MCP client setup →Python and TypeScript
Hand your agent a toolset of Microsoft Entra ID tools. The SDK gives OpenAI and Anthropic models the tools in the format they expect and runs the ones they pick.
SDK guide →Claude Code, Codex
The engini CLI connects Microsoft Entra ID and runs its tools from a terminal, with machine-readable output, so an AI coding agent such as Claude Code or Codex can drive it without getting stuck.
CLI guide →Any language
Every Microsoft Entra ID tool is an endpoint. Call it with exact inputs from a scheduled job or a sync, with no model in the loop.
API reference →.cursor/mcp.json. Claude Code: claude mcp add.// .cursor/mcp.json: Cursor, connected to Microsoft Entra ID through engini
{
"mcpServers": {
"engini-microsoft-entra-id--azure-ad": {
"url": "<your engini MCP server address>"
}
}
}
Create the MCP server in engini with your Microsoft Entra ID connection and the tools this agent may use, then paste its address. The client signs in through engini on first use. Claude, VS Code and other clients take the same address: see the MCP client setup guide.
Each request runs through the Microsoft Entra ID tools in the agent's toolset or MCP server. If a tool is not allowed, the agent cannot call it.
What teams build on Microsoft Entra ID. Agents and workflows, across systems.
Joiners from the HR record
When a hire appears in Workday or BambooHR, create the Entra ID user, add the groups for the role and assign the license.
Leavers, fully off
When someone leaves, remove their groups and licenses and delete or disable the account, with every step recorded.
New users, welcomed
When a user is created, post a welcome in Teams with their first-week tasks.
License review on request
An agent in Claude lists licenses held and unused. Its toolset holds read tools only.
Every integration runs both ways, so any of these flows can also run in reverse. These are examples, not the limit: any flow between Microsoft Entra ID and another system engini connects is available.
You decide what each agent may do in Microsoft Entra ID. engini enforces it on every call.
Only the tools you allow
A toolset lists the Microsoft Entra ID tools an agent may call and the connection each one uses. Give one agent read tools only and another the write it needs. engini refuses any call outside the toolset.
Scoped when you set them up
An MCP server exposes only the connections and tools chosen when it is created, and engini shows who uses each server.
Whose permissions apply
Connect a person's own Microsoft Entra ID account and engini acts as that person, with their Microsoft Entra ID permissions. Use a shared integration account and it acts as that account. Every run is recorded under the user who started it.
Kept out of prompts
Your agent never needs your credentials: engini stores them and adds them when it runs each call, so keys stay out of prompts and tool inputs.
Every call on record
Every call lands in History and the audit log, which you can export or stream to your SIEM.
Test before production
Workspaces keep teams apart, and development, staging and production environments keep a test agent away from live data.
Connect Microsoft Entra ID in three steps. Then decide what each agent may do.
Sign in to Microsoft Entra ID
Add a Microsoft Entra ID connection and sign in with an account that can administer the users, groups and licenses the workflows will touch.
Choose the tools
Add the connection to an MCP server or a toolset with only the tools each agent needs.
Build or ask
Use the connection as a step in a workflow, or ask your agent to work in Microsoft Entra ID from Claude, Claude Code, ChatGPT, Codex, Cursor or your own code.
Microsoft Entra ID and engini. Straight answers.
Can an AI agent write to Microsoft Entra ID, or only read?
Both. engini has tools to create, update and delete users and groups, change group membership and assign or remove licenses. Whether a given agent may use them is up to you: give it a toolset or an MCP server with read tools only, and it cannot call the rest.
Can I connect Claude or Claude Code to Microsoft Entra ID?
Yes, through engini. Create an MCP server in engini with your Microsoft Entra ID connection and the tools Claude may use. In Claude, add it under Settings, Connectors, Add custom connector; in Claude Code, run claude mcp add --transport sse with the server address, or use the engini CLI. Claude signs in through engini, sees only the Microsoft Entra ID tools you chose, and every call is in the audit log.
Is there an MCP server for Microsoft Entra ID?
Yes. engini gives you an MCP server for Microsoft Entra ID: create one in engini with your Microsoft Entra ID connection and only the tools you choose, and Claude, Claude Code, ChatGPT, Cursor, VS Code and other MCP clients connect to it and sign in through engini over OAuth, with no key to copy. MCP client setup.
How do I connect ChatGPT or Codex to Microsoft Entra ID?
ChatGPT: add the engini MCP server as a custom MCP server, where your ChatGPT workspace allows them, and sign in through engini. Codex: install the engini CLI and Codex runs Microsoft Entra ID tools from the terminal; the engini skills plugin for Codex also builds engini workflows from a plain-language request. In your own code, the SDK hands OpenAI models the Microsoft Entra ID tools.
Does the agent act as me in Microsoft Entra ID?
It acts as the Microsoft account behind the connection, with that account's directory roles. Give it only the roles the job needs. Every run is recorded under the person who started it.
Can a change in Microsoft Entra ID start work?
Yes. Check for Users Created starts a workflow when new users appear in your tenant, on the schedule you set. The workflow can include an AI agent step.