How to identify if current user isan "Adminstrator"

Posted by smartsysISV on 29-Nov-2014 17:53

I need to identify if the current user have a role as an Administratoror or if the current user is a"SuperUser"on the Client-side. With a "Super-User" i meanwhen i login to a customer from the ISV-console.

Can someone tell me this?

Posted by Godfrey Sorita on 01-Dec-2014 07:28

Hi Stein,

You can use the {!#CURR_USER.role#value} token to check the user role of the logged in user. If the value returns 'Super-Admin', then the user logged in from the ISV-console. Otherwise, it will return the actual user role (e.g. Administrator, Processor, etc.). This method only works on the 'Login' button, though.

Regards,
Godfrey

All Replies

Posted by Godfrey Sorita on 01-Dec-2014 07:28

Hi Stein,

You can use the {!#CURR_USER.role#value} token to check the user role of the logged in user. If the value returns 'Super-Admin', then the user logged in from the ISV-console. Otherwise, it will return the actual user role (e.g. Administrator, Processor, etc.). This method only works on the 'Login' button, though.

Regards,
Godfrey

Posted by Santosh Patel on 07-Dec-2014 11:52

Hi Stein,

Do you need on an informational basis (visible in UI somewhere)? or to be used somewhere in the processing, like Godfrey mentioned?

This thread is closed