function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rajesh ShahRajesh Shah 

User belongs to Roles and Subordinates group

Hi, I have the following query.

For the current User, I need to determine if it belongs to particular group or not. In the case, where the group is of type Roles And Subordinates, how do I determine this? I checked that for this type of group, there are no group members. So the only option I would have is to traverse through the Role Heirarchy. 

 

Let me know if there is a better way to do this.