Question

Compare if current user belongs to a particular role

Hello,

 

I have a requirement which should branch out for approval process based on the current user's role. If the user belongs to Marketing then the Marketing approval should get triggered and if the user belongs to Sales then Sales approval should get trigged.

 

I am trying to use the System administration object to lookup for the role, however, I am not able to compare if the user belongs to that role.

 

How to go about it.

 

Thanks in advance.

Madhuri

Like 0

Like

1 comments

This article will show you how to do this with an ESQ: 

https://customerfx.com/article/determining-if-a-user-has-a-specific-rol…

If you'e wanting to do this in a process, you'd basically need to check the SysUserInRole to see if the user is in a given role where the user column contains the user and the role column contains the role - if a row exists the user is in the role.

Ryan

Show all comments