How to Remove/Delete Group | Community
Skip to main content
crich2784
New Participant
May 12, 2022

How to Remove/Delete Group

  • May 12, 2022
  • 1 reply
  • 1140 views

We have a use-case where we need to create a dynamic group and add users dynamically into the group for a user assignment task.  The users are variable and determined during runtime.  We are using the following APIs to create the group and assign users.

 

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/org/apache/jackrabbit/api/security/user/UserManager.html

 

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/org/apache/jackrabbit/api/security/user/Group.html

 

After workflow completes, I would like to "clean up" the dynamic group.  Removing the users seems straightforward but, how do I delete the group?

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Pulkit_Jain_
Employee
May 12, 2022
crich2784
crich2784Author
New Participant
May 12, 2022

That is what I'm finding, too.

 

I think can I remove a Node in JCR directly but, I'm worried about any unknown side effects.  Any advice would be appreciated.  

Pulkit_Jain_
Employee
May 13, 2022

@crich2784 

Removing the node in JCR specific to the group is possible but not an ideal path forward but you can directly delete a group from usermanager although I am not sure if you'll find the dynamic group under useradmin created.