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
Anu ManiappanAnu Maniappan 

Getting the list of members of a ContentWorkspace(Library) in apex

Hi all,

I have a requirement to send an email to all the members of the ContentWorkspaces to which a ContentDocument belongs. I have got the list of Content workspaces to which that document belongs. But how can I get the list of members of those workspaces in Apex code? Any suggestions please?

(Note : From a post a few months back, I read that there is no object exposed with the ContentWorkspace Member details.

https://developer.salesforce.com/forums/?id=906F0000000AuqjIAC

Would like to know whether it is not available still. I don't need the details regarding the permissions for that document. I just need the members of the Content Workspaces.)