Hello all,
Has anyone found a way to be able to get the role of the user through JavaScript or anything? I have tried to look at the network calls to see if there was any JSON that I could manipulate.
Pretty much, use case is I want to get the role of the user and do multiple things with that string,
1) put it into a dataLayer for Analytics thus being able to create views and granulate data based off role
2) I want to create some Javascript on the page to enhance certain elements based off roles, example, the main navigation bar I Want to add a link that should only be visible to certain roles.
Any help here will be appreciated :)