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
Santosh reddy 14Santosh reddy 14 

I would like to retrieve users using a SOQL query putting a public groupid in where clause . Need help on this. is it possible to do

Nithesh NNithesh N
Hi Santosh, 

Try this....
SELECT id, Name, Email, isActive, UserType
FROM User 
WHERE id IN  (SELECT UserOrGroupId FROM GroupMember)
Let me know if it works.

Best,
Nithesh