Skip to main content

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"

}

 

Hi ​@api-user-a158066b-04bd I have not tried this activity, but this is how I made changes to the Power User’s resources. Maybe something will help.

 


@dwilburn Thank you for the writeup! I did find your article when I was Googling for potential fixes, but unfortunately it does not seem that endpoint has the capacity to override the wild card once it is assigned. It is possible that the wild card cannot be removed via any available API calls, I’m still looking for a solution. Thanks though!


I took at look in the explorer and I would tend to agree with you. The content and filter are optional.

It is the last in the list so it shouldn’t need a comma in the end.


You could try a different setting to see if the structure worked, and then tinker with that.


Another potential design solution: what if I just handle the profiles in my API integration, and then use a Recipe to handle the resource assignment? Are there Connect triggers for Profile changes and Connect actions for assigning branches and learning content?


Reply