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!
0