| title | List usageRights for group |
|---|---|
| description | Get a list of the usageRight objects granted to a group. |
| author | patrick-starrin |
| ms.localizationpriority | medium |
| ms.subservice | cloud-licensing |
| doc_type | apiPageType |
| ms.date | 10/22/2024 |
Namespace: microsoft.graph.cloudLicensing
[!INCLUDE beta-disclaimer]
Get a list of the usageRight objects granted to a group.
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.
[!INCLUDE permissions-table]
GET /groups/{groupId}/cloudLicensing/usageRightsThis method supports the $select, $top, $expand, and $filter OData query parameters to help customize the response. For general information, see OData query parameters.
The following examples show how to get usage rights information for groups based on specific filters:
GET /groups/0003985b-dfc1-4f42-97d4-65f70a335ca8/cloudLicensing/usageRights?$filter=skuId eq 639dec6b-bb19-468b-871c-c5c441c4b0cb
GET /groups/0003985b-dfc1-4f42-97d4-65f70a335ca8/cloudLicensing/usageRights?$filter=skuId in (639dec6b-bb19-468b-871c-c5c441c4b0cb, a403ebcc-fae0-4ca2-8c8c-7a907fd6c235)
GET /groups/0003985b-dfc1-4f42-97d4-65f70a335ca8/cloudLicensing/usageRights?$filter=services/any(c:c/planId eq 113feb6c-3fe4-4440-bddc-54d774bf0318)
GET /groups/0003985b-dfc1-4f42-97d4-65f70a335ca8/cloudLicensing/usageRights?$filter=services/any(c:c/planId in (113feb6c-3fe4-4440-bddc-54d774bf0318, 2049e525-b859-401b-b2a0-e0a31c4b1fe4))| 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.usageRight objects in the response body.
The following example shows how to get all usage rights granted to a group.
The following example shows a request.
GET https://graph.microsoft.com/beta/groups/0003985b-dfc1-4f42-97d4-65f70a335ca8/cloudLicensing/usageRights
[!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.usageRight",
"id": "1e373a1d-1f05-28cf-bfc0-ee0ecfd3db15",
"skuId": "639dec6b-bb19-468b-871c-c5c441c4b0cb",
"skuPartNumber": "Microsoft_365_Copilot",
"services": [
{
"@odata.type": "microsoft.graph.cloudLicensing.service",
"assignableTo": "user,group",
"planId": "fe6c28b3-d468-44ea-bbd0-a10a5167435c",
"planName": "COPILOT_STUDIO_IN_COPILOT_FOR_M365"
}
]
}
]
}The following example shows how to get all usage rights granted to a group for a specific service plan.
The following example shows a request.
GET https://graph.microsoft.com/beta/groups/0003985b-dfc1-4f42-97d4-65f70a335ca8/cloudLicensing/usageRights?$filter=services/any(c:c/planId eq 113feb6c-3fe4-4440-bddc-54d774bf0318)
[!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.usageRight",
"id": "5bbc716a-f73f-4cc1-bf16-53d38b407b8f",
"skuId": "75398b2a-b060-4057-9ae2-9eb00ef68579",
"skuPartNumber": "Copilot_Pro",
"services": [
{
"@odata.type": "microsoft.graph.cloudLicensing.service",
"assignableTo": "group",
"planId": "113feb6c-3fe4-4440-bddc-54d774bf0318",
"planName": "EXCHANGE_S_FOUNDATION"
}
]
}
]
}