Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Remove Groups from a User programatically

Avatar

Level 2

Hello!

How can we remove groups that are assigned to a particular User programatically? I ve tried AccessControlUtil etc, but couldn't remove these Groups (converted to Principals). Do anyone have idea on how we can do this?

1467509_pastedImage_0.png

Thanks,

Divya

1 Accepted Solution

Avatar

Correct answer by
Level 10

The method to remove a user from a group is in the Group interface:

Group (Apache Jackrabbit 2.6.10 API)

Hope this helps...

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

The method to remove a user from a group is in the Group interface:

Group (Apache Jackrabbit 2.6.10 API)

Hope this helps...