How to delete the user or Active Directory Group from the Course Catalog via API

If the user was added via Active Directory Group, you can either remove the user from the Active Directory Group or remove the Active Directory Group entirely from the Course Сatalog via API.

To remove the user or Active Directory group via API, use the endpoint DELETE/odata/v2/CourseCatalogs({id})/Users('{userLogin}') and specify the required parameters:

       Id – course catalog id. You can find it in the response body of the endpoint GET/odata/v2/CourseCatalogs:

{"Id": "00000000-7777-7bd7-1414-21a21b2121f0",
"Title": "The way we learn"}

       userLogin – LoginName of the appropriate User or Group. You can find it in the response body of the endpoint GET /odata/v2/Users.

{"Id":"47de1fad-1f2c-414b-826d-46d094f94735",
"Department": null,
"LoginName": "i:0#.f|membership|username@lms365.onmicrosoft.com"}

These users will no longer have access to the Course Catalog.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.