ESC
Type to search...

AgentIdUser.ReadWrite.All

Export JSON
Export CSV
Copy URL
Print
ApplicationDelegated Read/Write All Resources

Allows the app to read and update agent ID user profiles and read basic company properties without a signed in user.

Delegated Access App-Only Access

Permission Details

Application Permission

Read and write all agent ID users' full profiles

Allows the app to read and update agent ID user profiles and read basic company properties without a signed in user.

Delegated Permission Admin consent required

Read and write all agent ID users' full profiles

Allows the app to read and write the full set of profile properties, reports, and managers of agent ID users in your organization, and read basic company properties, on behalf of the signed-in user.

Properties

Property Type Description
id string The unique identifier for an entity. Read-only.
copilotTools microsoft.graph.copilotTool collection

Graph Methods

Delegated access App-only access
Methods
GET /admin/people/itemInsights
GET /me/createdObjects
GET /me/joinedTeams
GET /me/licenseDetails
GET /me/manager
GET /me/ownedObjects
GET /me/settings/
GET /users/{id | user-principal-name}/joinedTeams
GET /users/{id | userPrincipalName}/createdObjects
GET /users/{id | userPrincipalName}/manager
GET /users/{id | userPrincipalName}/ownedObjects
GET /users/{id | userPrincipalName}/sponsors
GET /users/{id}/licenseDetails
GET /users/{userId}/settings/shiftPreferences
GET /users/delta
POST /me/revokeSignInSessions
POST /me/translateExchangeIds
POST /users/{id | userPrincipalName}/assignLicense
POST /users/{id | userPrincipalName}/revokeSignInSessions
POST /users/{id}/reprocessLicenseAssignment
POST /users/{id}/sponsors/$ref
POST /users/{id|userPrincipalName}/translateExchangeIds
PATCH /me/settings
PATCH /users/{userId}/settings/shiftPreferences
PUT /users/{id}/manager/$ref
DELETE /users/{id}/manager/$ref
DELETE /users/{id}/sponsors/{id}/$ref
Methods
GET /admin/people/itemInsights
GET /me/createdObjects
GET /me/joinedTeams
GET /me/licenseDetails
GET /me/manager
GET /me/ownedObjects
GET /me/profile
GET /me/profile/account
GET /me/profile/account/{id}
GET /me/profile/addresses
GET /me/profile/addresses/{id}
GET /me/profile/anniversaries
GET /me/profile/anniversaries/{id}
GET /me/profile/awards
GET /me/profile/awards/{id}
GET /me/profile/certifications
GET /me/profile/certifications/{id}
GET /me/profile/educationalActivities
GET /me/profile/educationalActivities/{id}
GET /me/profile/emails
GET /me/profile/emails/{id}
GET /me/profile/interests
GET /me/profile/interests/{id}
GET /me/profile/languages
GET /me/profile/languages/{id}
GET /me/profile/names
GET /me/profile/names/{id}
GET /me/profile/notes
GET /me/profile/notes/{id}
GET /me/profile/patents
GET /me/profile/patents/{id}
GET /me/profile/phones
GET /me/profile/phones/{id}
GET /me/profile/positions
GET /me/profile/positions/{id}
GET /me/profile/projects
GET /me/profile/projects/{id}
GET /me/profile/publications
GET /me/profile/publications/{id}
GET /me/profile/skills
GET /me/profile/skills/{id}
GET /me/profile/webAccounts
GET /me/profile/webAccounts/{id}
GET /me/profile/websites
GET /me/profile/websites/{id}
GET /me/responsibilities
GET /me/responsibilities/{id}
GET /me/settings/
GET /organization/{organizationId}/settings/itemInsights
GET /organization/{organizationId}/settings/peopleInsights
GET /users/{id | user-principal-name}/joinedTeams
GET /users/{id | userPrincipalName}/createdObjects
GET /users/{id | userPrincipalName}/manager
GET /users/{id | userPrincipalName}/ownedObjects
GET /users/{id | userPrincipalName}/profile
GET /users/{id | userPrincipalName}/profile/account
GET /users/{id | userPrincipalName}/profile/account/{id}
GET /users/{id | userPrincipalName}/profile/addresses
GET /users/{id | userPrincipalName}/profile/addresses/{id}
GET /users/{id | userPrincipalName}/profile/anniversaries
GET /users/{id | userPrincipalName}/profile/anniversaries/{id}
GET /users/{id | userPrincipalName}/profile/awards
GET /users/{id | userPrincipalName}/profile/awards/{id}
GET /users/{id | userPrincipalName}/profile/certifications
GET /users/{id | userPrincipalName}/profile/certifications/{id}
GET /users/{id | userPrincipalName}/profile/educationalActivities
GET /users/{id | userPrincipalName}/profile/emails
GET /users/{id | userPrincipalName}/profile/emails/{id}
GET /users/{id | userPrincipalName}/profile/interests
GET /users/{id | userPrincipalName}/profile/interests/{id}
GET /users/{id | userPrincipalName}/profile/languages
GET /users/{id | userPrincipalName}/profile/languages/{id}
GET /users/{id | userPrincipalName}/profile/names
GET /users/{id | userPrincipalName}/profile/names/{id}
GET /users/{id | userPrincipalName}/profile/notes
GET /users/{id | userPrincipalName}/profile/notes/{id}
GET /users/{id | userPrincipalName}/profile/patents
GET /users/{id | userPrincipalName}/profile/patents/{id}
GET /users/{id | userPrincipalName}/profile/phones
GET /users/{id | userPrincipalName}/profile/positions
GET /users/{id | userPrincipalName}/profile/positions/{id}
GET /users/{id | userPrincipalName}/profile/projects
GET /users/{id | userPrincipalName}/profile/projects/{id}
GET /users/{id | userPrincipalName}/profile/publications
GET /users/{id | userPrincipalName}/profile/publications/{id}
GET /users/{id | userPrincipalName}/profile/skills
GET /users/{id | userPrincipalName}/profile/skills/{id}
GET /users/{id | userPrincipalName}/profile/webAccounts
GET /users/{id | userPrincipalName}/profile/webAccounts/{id}
GET /users/{id | userPrincipalName}/profile/websites
GET /users/{id | userPrincipalName}/profile/websites/{id}
GET /users/{id | userPrincipalName}/responsibilities
GET /users/{id | userPrincipalName}/responsibilities/{id}
GET /users/{id | userPrincipalName}/sponsors
GET /users/{id}/licenseDetails
GET /users/{userId}/profile/phones/{id}
GET /users/{userId}/settings/shiftPreferences
GET /users/{userId}/usageRights
GET /users/{usersId}/directReports
GET /users/{usersId}/manager
GET /users/{usersId}/memberOf
GET /users/{usersId}/ownedObjects
GET /users/{usersId}/sponsors
GET /users/{usersId}/transitiveMemberOf
GET /users/{usersId}/transitiveReports/$count
GET /users/delta
GET /users/microsoft.graph.AgentUser
GET /users/microsoft.graph.agentUser/{userId}
POST /me/profile/account
POST /me/profile/addresses
POST /me/profile/anniversaries
POST /me/profile/awards
POST /me/profile/certifications
POST /me/profile/educationalActivities
POST /me/profile/emails
POST /me/profile/interests
POST /me/profile/languages
POST /me/profile/names
POST /me/profile/notes
POST /me/profile/patents
POST /me/profile/phones
POST /me/profile/positions
POST /me/profile/projects
POST /me/profile/publications
POST /me/profile/skills
POST /me/profile/webAccounts
POST /me/profile/websites
POST /me/responsibilities
POST /me/revokeSignInSessions
POST /me/translateExchangeIds
POST /users/{id | userPrincipalName}/assignLicense
POST /users/{id | userPrincipalName}/profile/account
POST /users/{id | userPrincipalName}/profile/addresses
POST /users/{id | userPrincipalName}/profile/anniversaries
POST /users/{id | userPrincipalName}/profile/awards
POST /users/{id | userPrincipalName}/profile/certifications
POST /users/{id | userPrincipalName}/profile/educationalActivities
POST /users/{id | userPrincipalName}/profile/emails
POST /users/{id | userPrincipalName}/profile/interests
POST /users/{id | userPrincipalName}/profile/languages
POST /users/{id | userPrincipalName}/profile/names
POST /users/{id | userPrincipalName}/profile/notes
POST /users/{id | userPrincipalName}/profile/patents
POST /users/{id | userPrincipalName}/profile/positions
POST /users/{id | userPrincipalName}/profile/projects
POST /users/{id | userPrincipalName}/profile/publications
POST /users/{id | userPrincipalName}/profile/skills
POST /users/{id | userPrincipalName}/profile/webAccounts
POST /users/{id | userPrincipalName}/profile/websites
POST /users/{id | userPrincipalName}/responsibilities
POST /users/{id | userPrincipalName}/revokeSignInSessions
POST /users/{id}/reprocessLicenseAssignment
POST /users/{id}/sponsors/$ref
POST /users/{id|userPrincipalName}/translateExchangeIds
POST /users/{userId}/profile/phones
POST /users/{usersId}/manager/$ref
POST /users/{usersId}/sponsors/$ref
POST /users/microsoft.graph.agentUser
PATCH /me/profile/account/{id}
PATCH /me/profile/addresses/{id}
PATCH /me/profile/anniversaries/{id}
PATCH /me/profile/awards/{id}
PATCH /me/profile/certifications/{id}
PATCH /me/profile/educationalActivities/{id}
PATCH /me/profile/emails/{id}
PATCH /me/profile/interests/{id}
PATCH /me/profile/languages/{id}
PATCH /me/profile/names/{id}
PATCH /me/profile/notes/{id}
PATCH /me/profile/patents/{id}
PATCH /me/profile/phones/{id}
PATCH /me/profile/positions/{id}
PATCH /me/profile/projects/{id}
PATCH /me/profile/publications/{id}
PATCH /me/profile/skills/{id}
PATCH /me/profile/webAccounts/{id}
PATCH /me/profile/websites/{id}
PATCH /me/responsibilities/{id}
PATCH /me/settings
PATCH /organization/{organizationId}/settings/contactInsights
PATCH /users/{id | userPrincipalName}/profile/account/{id}
PATCH /users/{id | userPrincipalName}/profile/addresses/{id}
PATCH /users/{id | userPrincipalName}/profile/anniversaries/{id}
PATCH /users/{id | userPrincipalName}/profile/awards/{id}
PATCH /users/{id | userPrincipalName}/profile/certifications/{id}
PATCH /users/{id | userPrincipalName}/profile/emails/{id}
PATCH /users/{id | userPrincipalName}/profile/interests/{id}
PATCH /users/{id | userPrincipalName}/profile/languages/{id}
PATCH /users/{id | userPrincipalName}/profile/names/{id}
PATCH /users/{id | userPrincipalName}/profile/notes/{id}
PATCH /users/{id | userPrincipalName}/profile/patents/{id}
PATCH /users/{id | userPrincipalName}/profile/positions/{id}
PATCH /users/{id | userPrincipalName}/profile/projects/{id}
PATCH /users/{id | userPrincipalName}/profile/publications/{id}
PATCH /users/{id | userPrincipalName}/profile/skills/{id}
PATCH /users/{id | userPrincipalName}/profile/webAccounts/{id}
PATCH /users/{id | userPrincipalName}/profile/websites/{id}
PATCH /users/{id | userPrincipalName}/responsibilities/{id}
PATCH /users/{userId}/profile/phones/{id}
PATCH /users/microsoft.graph.agentUser/{userId}
PUT /users/{id}/manager/$ref
PUT /users/{userId}/settings/shiftPreferences
DELETE /me/profile
DELETE /me/profile/account/{id}
DELETE /me/profile/addresses/{id}
DELETE /me/profile/anniversaries/{id}
DELETE /me/profile/awards/{id}
DELETE /me/profile/certifications/{id}
DELETE /me/profile/educationalActivities/{id}
DELETE /me/profile/emails/{id}
DELETE /me/profile/interests/{id}
DELETE /me/profile/languages/{id}
DELETE /me/profile/names/{id}
DELETE /me/profile/notes/{id}
DELETE /me/profile/patents/{id}
DELETE /me/profile/phones/{itemPhoneId}
DELETE /me/profile/positions/{id}
DELETE /me/profile/projects/{id}
DELETE /me/profile/publications/{id}
DELETE /me/profile/skills/{id}
DELETE /me/profile/webAccounts/{id}
DELETE /me/profile/websites/{id}
DELETE /me/responsibilities/{id}
DELETE /users/{id | userPrincipalName}/profile
DELETE /users/{id | userPrincipalName}/profile/account/{id}
DELETE /users/{id | userPrincipalName}/profile/addresses/{id}
DELETE /users/{id | userPrincipalName}/profile/anniversaries/{id}
DELETE /users/{id | userPrincipalName}/profile/awards/{id}
DELETE /users/{id | userPrincipalName}/profile/certifications/{id}
DELETE /users/{id | userPrincipalName}/profile/emails/{id}
DELETE /users/{id | userPrincipalName}/profile/interests/{id}
DELETE /users/{id | userPrincipalName}/profile/languages/{id}
DELETE /users/{id | userPrincipalName}/profile/names/{id}
DELETE /users/{id | userPrincipalName}/profile/notes/{id}
DELETE /users/{id | userPrincipalName}/profile/patents/{id}
DELETE /users/{id | userPrincipalName}/profile/positions/{id}
DELETE /users/{id | userPrincipalName}/profile/projects/{id}
DELETE /users/{id | userPrincipalName}/profile/publications/{id}
DELETE /users/{id | userPrincipalName}/profile/skills/{id}
DELETE /users/{id | userPrincipalName}/profile/webAccounts/{id}
DELETE /users/{id | userPrincipalName}/profile/websites/{id}
DELETE /users/{id | userPrincipalName}/responsibilities/{id}
DELETE /users/{id}/manager/$ref
DELETE /users/{id}/sponsors/{id}/$ref
DELETE /users/{userId}/profile/phones/{itemPhoneId}
DELETE /users/{usersId}/manager/{id}/$ref
DELETE /users/{usersId}/sponsors/{id}/$ref
DELETE /users/microsoft.graph.agentUser/{userId}
Commands
Get-MgBetaAdminPeopleItemInsight
Get-MgBetaOrganizationSettingItemInsight
Get-MgBetaOrganizationSettingPersonInsight
Get-MgBetaUser
Get-MgBetaUserCreatedObject
Get-MgBetaUserDelta
Get-MgBetaUserDirectReport
Get-MgBetaUserJoinedTeam
Get-MgBetaUserLicenseDetail
Get-MgBetaUserManager
Get-MgBetaUserMemberOf
Get-MgBetaUserOwnedObject
Get-MgBetaUserProfile
Get-MgBetaUserProfileAccount
Get-MgBetaUserProfileAddress
Get-MgBetaUserProfileAnniversary
Get-MgBetaUserProfileAward
Get-MgBetaUserProfileCertification
Get-MgBetaUserProfileEducationalActivity
Get-MgBetaUserProfileEmail
Get-MgBetaUserProfileInterest
Get-MgBetaUserProfileLanguage
Get-MgBetaUserProfileName
Get-MgBetaUserProfileNote
Get-MgBetaUserProfilePatent
Get-MgBetaUserProfilePhone
Get-MgBetaUserProfilePosition
Get-MgBetaUserProfileProject
Get-MgBetaUserProfilePublication
Get-MgBetaUserProfileSkill
Get-MgBetaUserProfileWebAccount
Get-MgBetaUserProfileWebsite
Get-MgBetaUserSetting
Get-MgBetaUserSettingShiftPreference
Get-MgBetaUserSponsor
Get-MgBetaUserTransitiveMemberOf
Get-MgBetaUserTransitiveReportCount
Invoke-MgBetaLicenseUser
Invoke-MgBetaTranslateUserExchangeId
New-MgBetaUserProfileAccount
New-MgBetaUserProfileAddress
New-MgBetaUserProfileAnniversary
New-MgBetaUserProfileAward
New-MgBetaUserProfileCertification
New-MgBetaUserProfileEducationalActivity
New-MgBetaUserProfileEmail
New-MgBetaUserProfileInterest
New-MgBetaUserProfileLanguage
New-MgBetaUserProfileName
New-MgBetaUserProfileNote
New-MgBetaUserProfilePatent
New-MgBetaUserProfilePhone
New-MgBetaUserProfilePosition
New-MgBetaUserProfileProject
New-MgBetaUserProfilePublication
New-MgBetaUserProfileSkill
New-MgBetaUserProfileWebAccount
New-MgBetaUserProfileWebsite
Remove-MgBetaUserManagerByRef
Remove-MgBetaUserProfile
Remove-MgBetaUserProfileAccount
Remove-MgBetaUserProfileAddress
Remove-MgBetaUserProfileAnniversary
Remove-MgBetaUserProfileAward
Remove-MgBetaUserProfileCertification
Remove-MgBetaUserProfileEducationalActivity
Remove-MgBetaUserProfileEmail
Remove-MgBetaUserProfileInterest
Remove-MgBetaUserProfileLanguage
Remove-MgBetaUserProfileName
Remove-MgBetaUserProfileNote
Remove-MgBetaUserProfilePatent
Remove-MgBetaUserProfilePhone
Remove-MgBetaUserProfilePosition
Remove-MgBetaUserProfileProject
Remove-MgBetaUserProfilePublication
Remove-MgBetaUserProfileSkill
Remove-MgBetaUserProfileWebAccount
Remove-MgBetaUserProfileWebsite
Revoke-MgBetaUserSignInSession
Set-MgBetaUserLicense
Set-MgBetaUserManagerByRef
Update-MgBetaOrganizationSettingPersonInsight
Update-MgBetaUserProfileAccount
Update-MgBetaUserProfileAddress
Update-MgBetaUserProfileAnniversary
Update-MgBetaUserProfileAward
Update-MgBetaUserProfileCertification
Update-MgBetaUserProfileEducationalActivity
Update-MgBetaUserProfileEmail
Update-MgBetaUserProfileInterest
Update-MgBetaUserProfileLanguage
Update-MgBetaUserProfileName
Update-MgBetaUserProfileNote
Update-MgBetaUserProfilePatent
Update-MgBetaUserProfilePhone
Update-MgBetaUserProfilePosition
Update-MgBetaUserProfileProject
Update-MgBetaUserProfilePublication
Update-MgBetaUserProfileSkill
Update-MgBetaUserProfileWebAccount
Update-MgBetaUserProfileWebsite
Update-MgBetaUserSetting
Update-MgBetaUserSettingShiftPreference

Code Examples

C# / .NET SDK
// Install: dotnet add package Microsoft.Graph
// Install: dotnet add package Azure.Identity
using Microsoft.Graph;
using Azure.Identity;

// Delegated permissions - interactive user sign-in
var scopes = new[] { "AgentIdUser.ReadWrite.All" };
var options = new InteractiveBrowserCredentialOptions
{
    ClientId = "YOUR_CLIENT_ID",
    TenantId = "YOUR_TENANT_ID",
    RedirectUri = new Uri("http://localhost")
};
var credential = new InteractiveBrowserCredential(options);
var graphClient = new GraphServiceClient(credential, scopes);

// Example: GET /me
var result = await graphClient.Me.GetAsync();
Console.WriteLine($"User: {result?.DisplayName}");

// Application permissions - daemon/service app
var tenantId = "YOUR_TENANT_ID";
var clientId = "YOUR_CLIENT_ID";
var clientSecret = "YOUR_CLIENT_SECRET";

var credential = new ClientSecretCredential(tenantId, clientId, clientSecret);
var graphClient = new GraphServiceClient(credential);

// Example: GET /users/{user-id}
var users = await graphClient.Users.GetAsync();
foreach (var user in users?.Value ?? [])
{
    Console.WriteLine($"User: {user.DisplayName}");
}
JavaScript / TypeScript
// npm install @azure/msal-browser @microsoft/microsoft-graph-client
import { PublicClientApplication } from "@azure/msal-browser";
import { Client } from "@microsoft/microsoft-graph-client";
import { AuthCodeMSALBrowserAuthenticationProvider } from 
    "@microsoft/microsoft-graph-client/authProviders/authCodeMsalBrowser";

const msalConfig = {
    auth: {
        clientId: "YOUR_CLIENT_ID",
        authority: "https://login.microsoftonline.com/YOUR_TENANT_ID"
    }
};

const pca = new PublicClientApplication(msalConfig);
await pca.initialize();

// Delegated: Login with required scope
const loginResponse = await pca.loginPopup({
    scopes: ["AgentIdUser.ReadWrite.All"]
});

const authProvider = new AuthCodeMSALBrowserAuthenticationProvider(pca, {
    account: loginResponse.account,
    scopes: ["AgentIdUser.ReadWrite.All"],
    interactionType: "popup"
});

const graphClient = Client.initWithMiddleware({ authProvider });

// Example: GET /me
const result = await graphClient.api("/me").get();
console.log(result);

// Application: Use client credentials (Node.js backend only)
// npm install @azure/identity @microsoft/microsoft-graph-client
import { ClientSecretCredential } from "@azure/identity";
import { TokenCredentialAuthenticationProvider } from 
    "@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials";

const credential = new ClientSecretCredential(
    "YOUR_TENANT_ID",
    "YOUR_CLIENT_ID", 
    "YOUR_CLIENT_SECRET"
);

const authProvider = new TokenCredentialAuthenticationProvider(credential, {
    scopes: ["https://graph.microsoft.com/.default"]
});

const graphClient = Client.initWithMiddleware({ authProvider });
const result = await graphClient.api("/users").get();
console.log(result);
PowerShell
# Install Microsoft Graph PowerShell module
Install-Module Microsoft.Graph -Scope CurrentUser

# Delegated access - interactive sign-in
Connect-MgGraph -Scopes "AgentIdUser.ReadWrite.All"

# Verify connection
Get-MgContext | Select-Object Account, TenantId, Scopes

# Example: GET /me
$result = Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/me"
$result | ConvertTo-Json -Depth 5

# Application access with certificate
$params = @{
    ClientId = "YOUR_CLIENT_ID"
    TenantId = "YOUR_TENANT_ID"
    CertificateThumbprint = "YOUR_CERT_THUMBPRINT"
}
Connect-MgGraph @params

# Or with client secret (not recommended for production)
# Connect-MgGraph -ClientSecretCredential $credential

# Example: GET /users
$result = Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/users"
$result | ConvertTo-Json -Depth 5

# Always disconnect when done
Disconnect-MgGraph
Python
# pip install msgraph-sdk azure-identity
from azure.identity import InteractiveBrowserCredential, ClientSecretCredential
from msgraph import GraphServiceClient
import asyncio

# Delegated permissions - interactive browser sign-in
credential = InteractiveBrowserCredential(
    client_id="YOUR_CLIENT_ID",
    tenant_id="YOUR_TENANT_ID"
)
scopes = ["AgentIdUser.ReadWrite.All"]
client = GraphServiceClient(credential, scopes)

async def get_data():
    # Example: GET /me
    result = await client.me.get()
    print(f"User: {result.display_name}")
    return result

asyncio.run(get_data())

# Application permissions - client credentials
credential = ClientSecretCredential(
    tenant_id="YOUR_TENANT_ID",
    client_id="YOUR_CLIENT_ID",
    client_secret="YOUR_CLIENT_SECRET"
)
scopes = ["https://graph.microsoft.com/.default"]
client = GraphServiceClient(credential, scopes)

async def get_users():
    # Example: GET /users
    result = await client.users.get()
    for user in result.value:
        print(f"User: {user.display_name}")
    return result

asyncio.run(get_users())

App Registration

1

Navigate to Azure Portal

Go to App registrations in Microsoft Entra admin center

2

Add API Permission

Select your app → API permissions → Add a permission → Microsoft Graph

3

Select Permission Type

Choose Application permissions or Delegated permissions and search for AgentIdUser.ReadWrite.All

4

Grant Admin Consent

Application permissions always require admin consent. Click "Grant admin consent" in the Azure portal.