AnsweredAssumed Answered

Get groups/roles of current user with Public Java API

Question asked by itzamna on Nov 11, 2014
Latest reply on Nov 11, 2014 by itzamna
Hi folks,

maybe you can help me again: The use-case is, that I've to check whether the current user belongs to a pre-defined group or pre-defined role. This should happen in a Java written behaviour class.
I've found already a few approches (like: https://forums.alfresco.com/forum/developer-discussions/alfresco-api/get-user-groups-08032009-1423) but all of them are using the class "AuthorityService" at the end. Unfortunately this class is currently not Alfresco Public API: http://docs.alfresco.com/4.2/concepts/java-public-api-list.html

Are there any other solutions on how I can get all groups/roles where the user belongs to?

Thanks,
Itzamna

Outcomes