본문으로 건너뛰기
Skillpedia
자동화40k · #7190

entra-agent-user

하는 일

이 도구는 Microsoft Entra ID에서 AI 에이전트를 위한 사용자 ID를 만듭니다. 이렇게 하면 AI 에이전트가 디지털 직원으로서 이메일, Teams 같은 서비스에 접근할 수 있습니다.

사용하는 경우

  • ✓AI 에이전트가 이메일을 보내야 할 때.
  • ✓AI 에이전트가 Teams 회의에 참여해야 할 때.
  • ✓사용자 ID가 필요한 리소스에 AI 에이전트가 접근해야 할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/entra-agent-user/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/entra-agent-user/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“'Marketing Agent'라는 이름과 UPN 'marketing@mycompany.com'으로 마케팅 에이전트용 에이전트 사용자를 만들어 주세요. 에이전트 ID 'abc-123'에 연결해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 기존 AI 에이전트의 ID를 사용해 Microsoft Entra ID 안에 새 사용자 ID를 만듭니다. 이 새 사용자 ID에는 직원처럼 행동할 수 있는 권한이 부여됩니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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)

Important: The identityParentId must reference a true agent identity (created via an agent identity blueprint), NOT a regular application service principal. You can verify by checking that the service principal has @odata.type: #microsoft.graph.agentIdentity and servicePrincipalType: ServiceIdentity.


Architecture

Agent Identity Blueprint (application template)
    │
    ├── Agent Identity (service principal - ServiceIdentity)
    │       │
    │       └── Agent User (user - agentUser) ← 1:1 relationship
    │
    └── Agent Identity Blueprint Principal (service principal in tenant)
Component Type Token Claim Purpose
Agent Identity Service Principal idtyp=app Backend/API operations
Agent User User (agentUser) idtyp=user Act as a digital worker in M365

Step 1: Verify the Agent Identity Exists

Before creating an agent user, confirm the agent identity is a proper agentIdentity type:

GET https://graph.microsoft.com/beta/servicePrincipals/{agent-identity-id}
Authorization: Bearer <token>

Verify the response contains:

{
  "@odata.type": "#microsoft.graph.agentIdentity",
  "servicePrincipalType": "ServiceIdentity",
  "agentIdentityBlueprintId": "<blueprint-id>"
}

PowerShell

Connect-MgGraph -Scopes "Application.Read.All" -TenantId "<tenant>" -UseDeviceCode -NoWelcome
Invoke-MgGraphRequest -Method GET `
  -Uri "https://graph.microsoft.com/beta/servicePrincipals/<agent-identity-id>" | ConvertTo-Json -Depth 3

Common mistake: Using an app registration's appId or a regular application service principal's id will fail. Only agent identities created from blueprints work.


Step 2: Create the Agent User

HTTP Request

POST https://graph.microsoft.com/beta/users/microsoft.graph.agentUser
Content-Type: application/json
Authorization: Bearer <token>

{
  "accountEnabled": true,
  "displayName": "My Agent User",
  "mailNickname": "my-agent-user",
  "userPrincipalName": "my-agent-user@yourtenant.onmicrosoft.com",
  "identityParentId": "<agent-identity-object-id>"
}

Required Properties

Property Type Description
accountEnabled Boolean true to enable the account
displayName String Human-friendly name
mailNickname String Mail alias (no spaces/special chars)
userPrincipalName String UPN — must be unique in the tenant (alias@verified-domain)
identityParentId String Object ID of the parent agent identity

PowerShell

Connect-MgGraph -Scopes "User.ReadWrite.All" -TenantId "<tenant>" -UseDeviceCode -NoWelcome

$body = @{
  accountEnabled    = $true
  displayName       = "My Agent User"
  mailNickname      = "my-agent-user"
  userPrincipalName = "my-agent-user@yourtenant.onmicrosoft.com"
  identityParentId  = "<agent-identity-object-id>"
} | ConvertTo-Json

Invoke-MgGraphRequest -Method POST `
  -Uri "https://graph.microsoft.com/beta/users/microsoft.graph.agentUser" `
  -Body $body -ContentType "application/json" | ConvertTo-Json -Depth 3

Key Notes

  • No password — agent users cannot have passwords. They authenticate via their parent agent identity's credentials.
  • 1:1 relationship — each agent identity can have at most one agent user. Attempting to create a second returns 400 Bad Request.
  • The userPrincipalName must be unique. Don't reuse an existing user's UPN.

Step 3: Assign a Manager (Optional)

…

자주 묻는 질문

'에이전트 사용자'란 무엇인가요?

Microsoft Entra ID에 있는 특별한 ID로, AI 에이전트가 이메일과 Teams 같은 리소스에 접근하며 디지털 직원으로 행동하도록 합니다.

AI 에이전트에게 왜 사용자 ID가 필요한가요?

일부 Microsoft 365 서비스는 앱 ID만으로는 부족하고 사용자 ID로 접근해야 합니다. 에이전트 사용자는 AI 에이전트가 이 요건을 충족하도록 합니다.

에이전트 사용자에게 비밀번호를 설정할 수 있나요?

아니요. 에이전트 사용자는 비밀번호를 가질 수 없습니다. 상위 에이전트 ID의 자격 증명을 사용해 인증합니다.

상세 정보

작성자의 원본 설명

Create Agent Users in Microsoft Entra ID from Agent Identities, enabling AI agents to act as digital workers with user identity capabilities in Microsoft 365 and Azure environments.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7190
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬