AnsweredAssumed Answered

Possible misconception in AuthorityService

Question asked by gandrez on May 24, 2007
Latest reply on Sep 17, 2007 by andy
Hi all!  :)

I'm using Alfresco 2.0 CE. I'm trying to get immediate parents of a certain user, and in order to do that I'm calling authorityService.getContainingAuthorities(AuthorityType.GROUP, username, true).
However, what I'm getting is immediate parents of that user, as well as their immediate parents.

Example:

Uprava(group)
|—Centrala(group)
     |——Sektor(group)
          |———User1(user)

and

Uprava(group)
|—Centrala(group)
     |——Direktori(group)
          |———User1(user)

and the result is
Sektor, Direktori, CENTRALA, instead of Sektor, Direktori.

Am I doing something wrong?

Thanks in advance,

Dragan

Outcomes