Hi everyone,
Firstly, please accept my apologies as I seem to only be posting questions to this forum as opposed to helping others. I'm still new to Alfresco unfortunately.
I wanted to ask if there is a way to query (either via webscript or Java API) for ALL groups (including system groups) that a user is a member of?
The key to this is that I need all of the system groups. By using getContainerGroups() I can get the user-defined groups that a user is a member of. The trouble is, I need the system groups too.
E.G.
I have a site named "Site1". This site is created with system groups : GROUP_site_site1_SiteCollaborator, GROUP_site_site1_SiteConsumer and so on.
I have added user 'jsmith' to the site1_SiteConsumer system group.
Given this user's name I need to be able to find out that 'jsmith' is a member of the "GROUP_site_site1_SiteConsumer" group.
——
NOTE: I noticed in another thread that someone asked how they can identify if the user in question is in a system group FOR ONE SITE ONLY. I cannot use this. I need to know what system groups a user is in across many different sites.
I really hope someone can help.
Many thanks