Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Nível 1
Nível 2
Faça login na Comunidade
Faça logon para exibir todas as medalhas
Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Hi,
I have a AEM user say X. I have two groups A and B. User X is member of Group B and Group B is member of Group A. How to identify Whether X is a member of A?
Thanks in advance
Regards,
Vasim
Solucionado! Ir para a Solução.
Visualizações
respostas
Total de curtidas
Found the solution.
If I use requiredGroup.isMember(authorizableUser); It is working.
Thank you.
Visualizações
respostas
Total de curtidas
You can use the JackRabbit UserManager API to get this type of information -- UserManager (Apache Jackrabbit 2.6.8 API)
Visualizações
respostas
Total de curtidas
I tried following code. Still it is not working.
Authorizable authorizableUser = userManager.getAuthorizable("X");
Authorizable authorizableGroup = userManager.getAuthorizable("A");
if(authorizableGroup != null && authorizableGroup.isGroup()){
Group requiredGroup= (Group) authorizableGroup;
System.out.println(requiredGroup.isDeclaredMember(authorizableUser););
}
It is not even considering X as a member of Group A. In useradmin for user X it showing only Group B. It is not even considering X is a member of Group A.
Visualizações
respostas
Total de curtidas
Found the solution.
If I use requiredGroup.isMember(authorizableUser); It is working.
Thank you.
Visualizações
respostas
Total de curtidas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas