Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 12:54 PM
I'm having issues getting users added to Okta Groups. The account in Okta is shown added to the group, but when checking in Okta the user is not actually in the group.
We are using the following ADDAccessJSON:
{
"call": [
{
"name": "Group",
"connection": "acctAuth",
"httpMethod": "PUT",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200
],
"status": "ACTIVE"
}
},
{
"name": "Application",
"connection": "acctAuth",
"url": "https://caseys.oktapreview.com/api/v1/apps/${entitlementValue.entitlementID}/users",
"httpMethod": "POST",
"httpParams": " {\"id\": \"${account.accountID}\",\"scope\": \"USER\",\"credentials\": {\"userName\": \"${account.name}\"}}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200
],
"status": "ACTIVE"
}
}
]
}
Solved! Go to Solution.
04/12/2022 01:49 PM
Hello Adam,
Please use below JSON and also attaching Okta document link to Latest OKTA JSON
{
"call": [
{
"name": "OktaGroup",
"connection": "acctAuth",
"url": "https://<domain-name>/api/v1/groups/${entitlementValue.entitlementID}/users/${account.accountID}",
"httpMethod": "PUT",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,201,204
],
"status": "ACTIVE"
}
}
]
}
https://saviyntars.atlassian.net/wiki/spaces/SSMR5/pages/548241955/OKTA+Connector
04/12/2022 01:49 PM
The updated code on the documentation page works. Thanks for updating it.