You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| addLicenses |[assignedLicense](../resources/assignedlicense.md) collection | A collection of [assignedLicense](../resources/assignedlicense.md) objects that specify the licenses to add. You can disable servicePlans associated with a license by setting the **disabledPlans** property on an [assignedLicense](../resources/assignedlicense.md) object. |
59
-
| removeLicenses | Guid collection | A collection of skuIds that identify the licenses to remove. Required. |
59
+
| removeLicenses | Guid collection | A collection of skuIds that identify the licenses to remove. Required. Can be an empty collection. |
Copy file name to clipboardExpand all lines: api-reference/beta/api/user-assignlicense.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ In the request body, provide a JSON object with the following parameters.
48
48
| Parameter | Type |Description|
49
49
|:---------------|:--------|:----------|
50
50
|addLicenses|[assignedLicense](../resources/assignedlicense.md) collection|A collection of [assignedLicense](../resources/assignedlicense.md) objects that specify the licenses to add. You can disable servicePlans associated with a license by setting the **disabledPlans** property on an [assignedLicense](../resources/assignedlicense.md) object.|
51
-
|removeLicenses|Guid collection|A collection of skuIds that identify the licenses to remove. Required.|
51
+
|removeLicenses|Guid collection|A collection of skuIds that identify the licenses to remove. Required. Can be an empty collection.|
| addLicenses |[assignedLicense](../resources/assignedlicense.md) collection | A collection of [assignedLicense](../resources/assignedlicense.md) objects that specify the licenses to add. You can disable servicePlans associated with a license by setting the **disabledPlans** property on an [assignedLicense](../resources/assignedlicense.md) object. |
57
-
| removeLicenses | Guid collection | A collection of skuIds that identify the licenses to remove. Required. |
57
+
| removeLicenses | Guid collection | A collection of skuIds that identify the licenses to remove. Required. Can be an empty collection. |
Copy file name to clipboardExpand all lines: api-reference/v1.0/api/user-assignlicense.md
+69-74Lines changed: 69 additions & 74 deletions
Original file line number
Diff line number
Diff line change
@@ -44,18 +44,18 @@ In the request body, provide a JSON object with the following parameters.
44
44
| Parameter | Type |Description|
45
45
|:---------------|:--------|:----------|
46
46
|addLicenses|[assignedLicense](../resources/assignedlicense.md) collection|A collection of [assignedLicense](../resources/assignedlicense.md) objects that specify the licenses to add. You can disable servicePlans associated with a license by setting the **disabledPlans** property on an [assignedLicense](../resources/assignedlicense.md) object.|
47
-
|removeLicenses|Guid collection|A collection of skuIds that identify the licenses to remove. Required.|
47
+
|removeLicenses|Guid collection|A collection of skuIds that identify the licenses to remove. Required. Can be an empty collection.|
48
48
49
49
## Response
50
50
51
51
If successful, this method returns `200 OK` response code and [user](../resources/user.md) object in the response body.
52
52
53
-
## Example
54
-
Here is an example of how to call this API.
55
-
##### Request
56
-
The following example shows a request.
53
+
## Examples
54
+
55
+
### Example 1: Assign licenses to the signed-in user
56
+
57
+
#### Request
57
58
58
-
# [HTTP](#tab/http)
59
59
<!-- {
60
60
"blockType": "request",
61
61
"name": "user_assignlicense"
@@ -65,52 +65,75 @@ POST https://graph.microsoft.com/v1.0/me/assignLicense
0 commit comments