AnsweredAssumed Answered

Get the group(s) of a user

Question asked by sergio on Jan 9, 2007
Hi all.

The same question as some time ago.

Supposing that at the moment there is no one API for getting the list of groups a user belongs to, what is the best way (if any) to do this task using some workarounds?

Any help would be appreciated, thanks.

I have the following idea to try to resolve the problem.
1. Create a new object inheriting from the person content type of Alfresco content models. The new object should extend the person class with new properties such as group class with the "many" attribute set to true;
2. In this way - programmatically - it could be possibile to create a new node of the new defined type storing groups as QNames, and more in general, to manipulate the object as any other nodes.

The main disadvantage is that this task is time consuming to be implemented….

Cheers,

Sergio

Outcomes