You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Retrieve User Roles in JavaScript for Role-Based Personalization

Hello

I am working on a JavaScript code to personalize the “Instructors” page in Learning.
I want this personalization to be role-dependent, so that the content displayed varies according to the user’s role.

I’m unsure how to retrieve the list of roles and integrate it into my code. Would this require a REST API call, or is there another recommended approach?

Could you please advise?
Thank you!

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!