Unable to change SSO ID of user with the API
Hey all,
We need to update the SSO ID of our users systematically and I am writing a Python script to do so. However, when attempting to do so in the API v1 using a POST call to the /users/id/{id}/sso_id/set endpoint, I am getting the following response.
{
"response": {
"status": "error",
"error": {
"code": 303,
"message": "Permission Denied"
}
}
}
I am authenticated as a user with full admin privileges so I'm not sure why I would be getting the Permission Denied message, especially since my user can change SSO IDs via Community Admin just fine. The payload (value=) is also a simple numeric string so it shouldn't be due to invalid. characters or anything.
Anyone ever experienced this and know how I can get around it?
Thanks in advance!
Hi jeffshurtliff,
I'm following up here from the Support case to close the loop for others with the same issue.As mentioned in the ticket, we don't support the /users/id/{id}/sso_id/set endpoint using HTML methods, which is why our documentation doesn't mention it:
The only supported method is via Community Admin > Mod Tools > Edit Users:
https://community.khoros.com/t5/Single-Sign-On-SSO/Change-a-user-s-SSO-ID/ta-p/124139
This similar thread mentions using FreeMarker as a workaround:
However, the FreeMarker method isn't supported and may not work in the future.
Since you have to update hundreds of SSO IDs, I'm glad our Professional Services team is helping with the new SSO ID mapping!
Thank you for reaching out to us about this issue.
All the best,