| title | List assignments for usageRight |
|---|---|
| description | Get a list of assignment objects which combine to form this usageRight. |
| author | patrick-starrin |
| ms.date | 07/18/2025 |
| ms.localizationpriority | medium |
| ms.subservice | cloud-licensing |
| doc_type | apiPageType |
Namespace: microsoft.graph.cloudLicensing
[!INCLUDE beta-disclaimer]
Get a list of assignment objects which combine to form this usageRight, including both direct assignments and assignments inherited through group membership.
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.
Permissions to list usageRight assignments for a user:
GET /me/cloudLicensing/usageRights/{usageRightId}/assignments
GET /users/{userId}/cloudLicensing/usageRights/{usageRightId}/assignments[!INCLUDE permissions-table]
Permissions to list usageRight assignments for a group:
GET /groups/{groupId}/cloudLicensing/usageRights/{usageRightId}/assignments[!INCLUDE permissions-table]
To list assignments for the signed-in user using delegated (/me) permissions:
GET /me/cloudLicensing/usageRights/{usageRightId}/assignmentsTo list assignments using either delegated or application permissions:
GET /groups/{groupId}/cloudLicensing/usageRights/{usageRightId}/assignments
GET /users/{userId}/cloudLicensing/usageRights/{usageRightId}/assignmentsThis method supports the $select, $top, and $expand OData query parameters to help customize the response. For general information, see OData query parameters.
| 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 microsoft.graph.cloudLicensing.assignment objects in the response body.
The following example shows a request.
GET https://graph.microsoft.com/beta/me/cloudLicensing/usageRights/7e452304-0a58-40d6-8fd2-2afe92d26a3a/assignments[!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.cloudLicensing.assignment",
"id": "405ee855-dd74-f695-8d7e-be35a6788fe8",
"disabledServicePlanIds": [
"5e62787c-c316-451f-b873-1d05acd4d12c"
]
}
]
}