I am attempting to modify a Power User’s Assigned Resources by unassigning the “All in visible catalogs” wildcard from the Courses and learning plans resource type.
Based on the API explorer, the closest endpoint I could find was Unassign Courses, Learning Plans, Categories from Power User Assignments. However, when I attempt to use this endpoint’s “all” feature to remove the assignment, I get the error in the response below.
Is there a different way to unassign the ALL_COURSE_LP_IN_CATALOG wildcard from a Power User?
I need to find a way to remove this resource assignment from users to whom it no longer applies, without demoting the Level to User. It is possible that a Power User in our instance may no longer need this resource assignment, but still needs to remain a Power User with other related permissions.
Thank you for your help!
REQUEST
Method: DELETE
Endpoint: /poweruser/v1/powerusers/{user_id}/learning-content
Body:
{
"all": true
}
RESPONSE
Status Code: 200 OK
Body:
{
"data": {
"success": false,
"reason_code": "ALL_COURSE_LP_IN_CATALOG"
},
"version": "1.0.0"
}