License details are altered with SCIM API endpoint group.
Example:
1. Create a user test.account@example.com with the sample code provided in Swagger:
POST /users
body:
{
"data": {
"attributes": {
"alias": "test",
"country": "USA",
"emailAddress": "test.account@example.com",
"firstName": "test",
"lastName": "account",
"organization": "example",
"roles": [
{
"id": "1",
"name": "System Admin"
}
]
}
}
}
2. Confirm in Configuration GUI that user was created and has no license.
3. Get user's details(SCIM ID and license info):
GET {{baseURL}}/scim/v2/Users?filter=userName+eq+'test.account@example.com'
...
"id": "user-117"
...
"licenses": [
{
"name": "Notebook",
"active": false,
"id": "signals_notebook"
}
4. Use PATCH {{baseURL}}/scim/v2/users/{id}
PATCH {{baseURL}}/scim/v2/Users/user-117
body:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "replace",
"path": "urn:ietf:params:scim:schemas:extension:signalsnotebook:2.0:UserProperties:licenses[id eq signals_notebook]",
"value": {
"id": "signals_notebook",
"active": true
}
}
]
}
5. Confirm in Configuration GUI that user has Notebook license
Comments
0 comments
Article is closed for comments.