User-CloudLicensing.AssignLicenses
Merill's Note
For an app to access data in Microsoft Graph, the user or administrator must grant it the permissions it needs. This article lists all the Microsoft Graph APIs and your tenant data that can be accessed by the application (vendor/developer) if you consent to the
User-CloudLicensing.AssignLicensespermission.If you need to create an audit report of the permissions granted to all the apps in your tenant, you can run the
Export-MsIdAppConsentGrantReportcommand. See How To: Run a quick OAuth app audit of your tenant
| Category | Application | Delegated |
|---|---|---|
| Identifier | - | - |
| DisplayText | - | - |
| Description | - | - |
| AdminConsentRequired | Yes | No |
Graph Methods
→ API supports delegated access (access on behalf of a user)
→ API supports app-only access (access without a user)
| Methods |
|---|
Resources
Granting this permission allows the calling application to access (and/or update) the following information in your tenant.
Graph reference: allotment
| Property | Type | Description |
|---|---|---|
| allottedUnits | Int32 | The number of licenses contained within the allotment. Not nullable. Read-only. |
| assignableTo | microsoft.graph.cloudLicensing.assigneeTypes | Identifies the types of directory objects to which the allotment can be assigned. The possible values are: none, user, group, device, unknownFutureValue. The assigneeTypes enum is multivalued and can contain multiple values in a comma‑separated list. Not nullable. Read-only. |
| consumedUnits | Int32 | The number of licenses that are currently consumed by assignments from this allotment. Not nullable. Read-only. |
| id | String | The unique identifier for the allotment that should be treated as an opaque identifier. Inherited from entity. Not nullable. Read-only. |
| services | microsoft.graph.cloudLicensing.service collection | The list of services that might be enabled or disabled for assignments from this allotment. Not nullable. Read-only. |
| skuId | Guid | Unique identifier (GUID) for the service SKU that is equal to the skuId property on the related subscribedSku object. Read-only. Supports $filter. |
| skuPartNumber | String | Unique SKU display name that is equal to the skuPartNumber on the related subscribedSku object; for example, AAD_Premium. Read-only. |
| subscriptions | microsoft.graph.cloudLicensing.subscription collection | Basic information about the subscriptions that supports this allotment. |