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
Nandakumar SakthivelNandakumar Sakthivel 

Need a report on the list of users and their public group association

Hi All ,
Need a report on the list of users and their public group association.
SELECT Email,FirstName,LastName From User Where ID in (SELECT UserOrGroupId From GroupMember Where Group.type='Regular')
I am not sure about how to fetch group name as part of the above query, Is there a way to fetch these details in any approach ? The result should be in the below format,
Email 1 , First Name 1 , Last Name 1 , 'Group 1' , 'Group 2'
Email 2 , First Name 2 , Last Name 2 , 'Group 3' , 'Group 2'

Thank you