cancel
Showing results for 
Search instead for 
Did you mean: 

Can Personas check user roles in JavaScript?

former_member238607
Participant
0 Kudos

Hi,

We are running Personas 3.0 SP5, and I was wondering if there is a way to check a user's Personas roles using JavaScript? I have a couple flavors that need to be slightly different, based on the user's roles.

I know I can create multiple flavors and assign them by role in the admin console. But these are SMEN flavors and I see them continuing to evolve. I was thinking it may be easier to have one flavor that is modified by JavaScript, based on the user's roles.

I'm also assuming this may be possible by writing a RFC; I was just checking on a JavaScript option first.

Thanks for your help!

Accepted Solutions (0)

Answers (1)

Answers (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

I'd do it using BAPI_USER_GET_DETAIL - should be easy.

I'm not aware of a Personas JS command reading the user's roles.