ā12-13-2024 04:29 AM
Hi Team,
I am trying to create a user using scim2-create-a-user API.
I am sending "active" parameter value as "true" but in response I am getting "active" parameter value "false".
Due to this, user is getting created on Webex Control Hub system with status "Inactive" instead of status "Not verified".
This was not case previously. User was getting created with status "Not verified.
But now it's getting created with status "Inactive".
Please find below request and response.
Request:
curl --location 'https://webexapis.com/identity/scim/{ORG_ID}/v2/Users' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
"urn:scim:schemas:extension:cisco:webexidentity:2.0:User"
],
"userName": "TestNg12242@yahoo.com",
"userType": "user",
"title": "XXXXX",
"active": true,
"preferredLanguage": "en_US",
"locale": "en_US",
"timezone": "XXXX",
"displayName": "XXXXXXX,
"nickName": "Pacific",
"name": {
"givenName": "XXXX",
"familyName": "XXXX",
"middleName": "",
"honorificPrefix": "Mr.",
"honorificSuffix": "III"
},
"phoneNumbers": [
{
"value": "XXXXXXXX",
"type": "work",
"display": "work phone number",
"primary": true
}
],
"photos": [
{
"value": "https://images.app.goo.gl/fJQRKmzRCXwPkjUPA",
"type": "photo",
"display": "photo description",
"primary": true
}
],
"addresses": [
{
"type": "work",
"streetAddress": "XXXXXXX",
"locality": "XXX",
"region": "XX",
"postalCode": "XXXXX",
"country": "US"
}
],
"emails": [
{
"value": "TestNg12242@yahoo.com",
"type": "home",
"display": "home email description",
"primary": false
}
],
"urn:scim:schemas:extension:cisco:webexidentity:2.0:User": {
"accountStatus": [
"active"
]
}
}'
Response:
Same case with the enable user, please see link. Trying to enable user via SCIM 2.0 API but returning active=false
In API guideline Sample request "active" parameter value being sent "true" and in response it's reflecting correct.
Sample request screenshot
Sample response screenshot
Please advise and do needful.
Thanks.
ā12-16-2024 09:32 PM
Thank you @Janos Benyovszki .
I creates support ticket.
Request ID: #129949
ā12-16-2024 03:53 AM
@prashant-chinchkar I would recommend opening a support ticket here for this, we might need to check this with engineering. Please also describe what the "previously" term mean you mentioned. When did the behaviour change exactly?
You can send an email to us at devsupport@webex.com or go to https://developer.webex.com/support .
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide