github avatar

Entra Agent User

This walks you through creating agent users in Microsoft Entra ID, which lets AI agents act like actual employees with mailboxes, Teams presence, and org chart visibility. It covers the specific API calls to convert agent identities into user objects that get `idtyp=user` tokens instead of `idtyp=app`. The guide handles the tricky verification steps to ensure you're using a proper agent identity (not a regular service principal), sets up licensing for Exchange/Teams, and explains why provisioning can take 24-48 hours. Useful when your AI agent needs to send emails, join meetings, or appear in employee directories rather than just calling backend APIs.

skills.sh installs
8.6K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill entra-agent-user --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: Creating Agent Users in Microsoft Entra Agent ID

Overview

An agent user is a specialized user identity in Microsoft Entra ID that enables AI agents to act as digital workers. It allows agents to access APIs and services that strictly require user identities (e.g., Exchange mailboxes, Teams, org charts), while maintaining appropriate security boundaries.

Agent users receive tokens with idtyp=user, unlike regular agent identities which receive idtyp=app.


Prerequisites

  • A Microsoft Entra tenant with Agent ID capabilities
  • An agent identity (service principal of type ServiceIdentity) created from an agent identity blueprint
  • One of the following permissions:
    • AgentIdUser.ReadWrite.IdentityParentedBy (least privileged)
    • AgentIdUser.ReadWrite.All
    • User.ReadWrite.All
  • The caller must have at minimum the Agent ID Administrator role (in delegated scenarios)

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Git & Pull Requests, AI & Agent Building, Cloud & Infrastructure

More from github/awesome-copilot

All 318
1github avatarruby-mcp-server-generatorgithub/awesome-copilotGenerate a complete Model Context Protocol server project in Ruby using the official MCP Ruby SDK gem.8.6Kskills.sh installs
2github avatarwinapp-cligithub/awesome-copilotWindows App Development CLI (winapp) for building, packaging, signing, debugging, and UI-automating Windows applications. Use when asked to initialize Windows a8.4Kskills.sh installs
3github avatarmodel-recommendationgithub/awesome-copilotAnalyze chatmode or prompt files and recommend optimal AI models based on task complexity, required capabilities, and cost-efficiency8.4Kskills.sh installs
4github avatarpolyglot-test-agentgithub/awesome-copilotGenerates comprehensive, workable unit tests for any programming language using a multi-agent pipeline. Use when asked to generate tests, write unit tests, impr8.4Kskills.sh installs
5github avatarcsharp-mcp-server-generatorgithub/awesome-copilotGenerate a complete MCP server project in C# with tools, prompts, and proper configuration8.4Kskills.sh installs
6msw-git avatarmsw-planningmsw-git/msw-ai-coding-plugins-officialMSW (MapleStory Worlds) game-planning mode — for BOTH starting a brand-new game from scratch AND continuing/resuming an in-progress prototype. Narrow the idea w8.1Kskills.sh installs