| title | assignmentError resource type |
|---|---|
| description | Represents an error that impacts synchronization of license assignments in the directory. |
| author | patrick-starrin |
| ms.date | 07/18/2025 |
| ms.localizationpriority | medium |
| ms.subservice | cloud-licensing |
| doc_type | resourcePageType |
Namespace: microsoft.graph.cloudLicensing
[!INCLUDE beta-disclaimer]
Represents an error that impacts synchronization of license assignments in the directory. This error can prevent the license assignment from taking effect or from updating.
Inherits from entity.
| Method | Return type | Description |
|---|---|---|
| List | microsoft.graph.cloudLicensing.assignmentError collection | Get a list of the assignmentError objects within an organization or affecting a specific user. |
| Get | microsoft.graph.cloudLicensing.assignmentError | Read the properties and relationships of an assignmentError object. |
| Get assignedTo | directoryObject | Get a user or group object for a given assignmentError to which licenses are assigned. |
| Get usageRight | microsoft.graph.cloudLicensing.usageRight | Get a usageRight object affected by an assignmentError. |
| Property | Type | Description |
|---|---|---|
| code | String | The error code associated with the assignment synchronization failure. |
| id | String | The unique identifier for the assignmentError that should be treated as an opaque identifier. Inherited from entity. Not nullable. Read-only. |
| message | String | The error message associated with the assignment synchronization failure. |
| occurrenceDateTime | DateTimeOffset | The date and time at which the error most recently occurred. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. |
| 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. |
| Relationship | Type | Description |
|---|---|---|
| assignedTo | directoryObject | The user to whom licenses are assigned. Not nullable. Read-only. |
| usageRight | usageRight | The affected usageRight, if one exists. Read-only. |
The following JSON representation shows the resource type.
{
"@odata.type": "#microsoft.graph.cloudLicensing.assignmentError",
"code": "String",
"id": "String (identifier)",
"message": "String",
"occurrenceDateTime": "String (timestamp)",
"skuId": "Guid"
}