| title | List agentUser objects |
|---|---|
| description | Get a list of the agentUser objects and their properties. |
| author | yyuank |
| ms.reviewer | iamut |
| ms.date | 11/12/2025 |
| ms.localizationpriority | medium |
| ms.subservice | entra-agent-id |
| doc_type | apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Get a list of the agentUser objects and their properties.
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
| Permission type | Least privileged permission | Higher privileged permissions |
|---|---|---|
| Delegated (work or school account) | User.ReadBasic.All | User.Read.All, AgentIdUser.ReadWrite.IdentityParentedBy, AgentIdUser.ReadWrite.All, User.ReadWrite.All |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | User.ReadBasic.All | User.Read.All, AgentIdUser.ReadWrite.IdentityParentedBy, AgentIdUser.ReadWrite.All, User.ReadWrite.All |
GET /users/microsoft.graph.AgentUserThis method supports OData query parameters to help customize the response:
$count,$expand,$filter,$orderby,$search,$select,$top.$skipis not supported.- Page size limits: The default page size is 100 objects. The maximum page size is 999 objects, except when using
$select=signInActivityor$filter=signInActivity, the maximum page size is 500. - Some queries require the ConsistencyLevel header set to
eventualand$count. For more information, see Advanced query capabilities on directory objects.
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK response code and a collection of agentUser objects in the response body.
The following example shows a request.
GET https://graph.microsoft.com/beta/users/microsoft.graph.agentUser[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value":
{
"@odata.type": "#microsoft.graph.agentUser",
"id": "84e0b4dc-e852-29ed-1e5d-9e1f335611e8",
"deletedDateTime": "String (timestamp)",
"signInActivity": {
"@odata.type": "microsoft.graph.signInActivity"
},
"cloudLicensing": {
"@odata.type": "microsoft.graph.cloudLicensing.userCloudLicensing"
},
"accountEnabled": "Boolean",
"ageGroup": null,
"assignedLicenses": [
{
"@odata.type": "microsoft.graph.assignedLicense"
}
],
"assignedPlans": [
{
"@odata.type": "microsoft.graph.assignedPlan"
}
],
"authorizationInfo": null,
"businessPhones": [
"String"
],
"city": "String",
"cloudRealtimeCommunicationInfo": {
"@odata.type": "microsoft.graph.cloudRealtimeCommunicationInfo"
},
"companyName": "String",
"consentProvidedForMinor": null,
"country": "String",
"createdDateTime": "String (timestamp)",
"creationType": "String",
"department": "String",
"displayName": "String",
"employeeHireDate": "String (timestamp)",
"employeeId": "String",
"employeeOrgData": {
"@odata.type": "microsoft.graph.employeeOrgData"
},
"employeeType": "String",
"employeeLeaveDateTime": "String (timestamp)",
"faxNumber": "String",
"givenName": "String",
"identities": [
{
"@odata.type": "microsoft.graph.objectIdentity"
}
],
"imAddresses": [
"String"
],
"infoCatalogs": [
"String"
],
"isLicenseReconciliationNeeded": "Boolean",
"isManagementRestricted": "Boolean",
"isResourceAccount": "Boolean",
"jobTitle": "String",
"lastPasswordChangeDateTime": null,
"legalAgeGroupClassification": null,
"licenseAssignmentStates": [
{
"@odata.type": "microsoft.graph.licenseAssignmentState"
}
],
"mail": "String",
"mailNickname": "String",
"mobilePhone": "String",
"onPremisesDistinguishedName": null,
"onPremisesExtensionAttributes": null,
"onPremisesImmutableId": null,
"onPremisesLastSyncDateTime": null,
"onPremisesProvisioningErrors": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSipInfo": null,
"onPremisesSyncEnabled": null,
"onPremisesDomainName": null,
"onPremisesSamAccountName": null,
"onPremisesUserPrincipalName": null,
"otherMails": [
"String"
],
"passwordPolicies": null,
"passwordProfile": null,
"officeLocation": "String",
"postalCode": "String",
"preferredDataLocation": "String",
"preferredLanguage": "String",
"provisionedPlans": [
{
"@odata.type": "microsoft.graph.provisionedPlan"
}
],
"proxyAddresses": [
"String"
],
"refreshTokensValidFromDateTime": "String (timestamp)",
"securityIdentifier": "String",
"serviceProvisioningErrors": [
{
"@odata.type": "microsoft.graph.serviceProvisioningXmlError"
}
],
"showInAddressList": "Boolean",
"signInSessionsValidFromDateTime": "String (timestamp)",
"state": "String",
"streetAddress": "String",
"surname": "String",
"usageLocation": "String",
"userPrincipalName": "String",
"externalUserState": null,
"externalUserStateChangeDateTime": null,
"userType": "String",
"identityParentId": "String",
"mailboxSettings": {
"@odata.type": "microsoft.graph.mailboxSettings"
},
"aboutMe": "String",
"birthday": "String (timestamp)",
"interests": [
"String"
],
"mySite": "String",
"pastProjects": [
"String"
],
"preferredName": "String",
"responsibilities": [
"String"
],
"schools": [
"String"
],
"skills": [
"String"
]
}
}