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
Sumanth ReddySumanth Reddy 

How to know weather the user exists in Group/ Queue, Will all the possibilities of Available member Types.

In Public Groups/ Queue  Available Members will be User, public Groups, Roles, Roles and Subordinates. How do we know that a perticular user is avaialble in this Queue/Public Group that might be either based on Role/Another Inner Public Group/ Roles and SubOrdinate . Apex code will be help full. (I refered Mostly commanly avaiable Google Searches.)
Lokesh KumarLokesh Kumar
You need to search level by level:

1. Identify the User Role then search in which group or queue this role exists. By doing this you will know in the following groups this user exist.
2. Search in the groups with Member type as a user and identify in which groups the user exist.