#1 2017-01-18 16:10:09

wonky
Member
Registered: 2016-03-01

Delete Groups by Name

Hi!

How do we delete all groups with a given name in script?

May we do so via brute force by deleting from rs_group?

Delete from rs_group where Name = "Technical" ?

Thanks!

Offline

#2 2017-02-01 13:04:11

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Delete Groups by Name

Hi wonky,

you can use the UserManagerService's method public void remove(AbstractUserManagerNode node);

The node can be a User node, OU, or group. For a group, you can check it's name before removing it with getName() or getId() for its ID.

Cheers,
Eduardo

Offline

Board footer

Powered by FluxBB