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?
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
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
Hi Stein,
Do you need on an informational basis (visible in UI somewhere)? or to be used somewhere in the processing, like Godfrey mentioned?