Hey Andy, I have read that but did not get much luck. My use case is- In our organization there are various Private Groups are there. I need to know who are Moderators,owners and Managers are there for each Private and Public Group.
The CollaborationGroupMember table has CollaborationGroupId (your chatter group) and CollaborationRole, a picklist of "Standard" and "Admin". "Admin" = Manager.
The "Owner" of the group is the CollaborationGroup.OwnerId.
SOQL would roughly be SELECT Id, Owner.Name, (SELECT MemberId, CollaborationRole FROM CollaborationGroupMembers)
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_collaborationgroupmember.htm
I have read that but did not get much luck.
My use case is- In our organization there are various Private Groups are there. I need to know who are Moderators,owners and Managers are there for each Private and Public Group.
Basically, I am looking for the SOQL query.
The "Owner" of the group is the CollaborationGroup.OwnerId.
SOQL would roughly be SELECT Id, Owner.Name, (SELECT MemberId, CollaborationRole FROM CollaborationGroupMembers)