Role check using a condition

Hi Team,


I want to check the role after clicking a button. Based on the role, it has to go to different screen.

Please help me out.

I have a role "Process owner". I want to check the role for new screen actions

Solution

Hi Lukas,

You can only use the CheckRole actions on the server-side like this:

You can find those Role Actions in the Logic Tab all the way at the bottom.

If you want to check roles on the client side you can follow this API documentation.

Hope this helps.

Regards,

Nordin

Solution

Hi Lukas,

You cannot use the CheckRole actions inside a client action, only inside server actions.

If you want to perform client-side role checks you can follow this API documentation and use Javascript.

Note that, you should never rely on clientside role checks for security as the javascript run on the clients' browser. Be sure to repeat those role checks on the server side.

Regards,

Nordin