Clear all users from all groups
See original GitHub issueHey! I’ve been searching a way to wipe out all my users in my server, and I haven’t found a reliable way to do that.
I saw a solution with this:
lp bulkupdate users update permission group.default "permission == group.something"
But it wouldn’t work for me because I have 50+ groups, and it’d take an eternity to do that.
Can’t you add a new wildcard, for “any” (like *, but using % or something like that)? Or just a command to wipe out the users?
Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Trying to remove user from all groups in an Active Directory ...
Trying to remove user from all groups in an Active Directory using PowerShell script · 1 · Try to use Get-ADPrincipalGroupMembership and Remove- ......
Read more >Removing User from all AD groups? : r/PowerShell - Reddit
One of the things we do when we are disabling accounts and removing all groups from the account is to output the group...
Read more >PowerShell Script to Remove User from All Groups
Hello,. So I'm working on a quick way to remove a user from all dristros in Exchange 2010 with a simple script.
Read more >Need to delete ALL users from ALL groups which are ...
Hello,. I have an OU called "DGroups" in the root of my AD domain. Inside that OU are various security groups.
Read more >How To Remove all Group Membership From Active Directory ...
If you manage your Inactive users through Active Directory groups, it becomes very easy to get the Samaccount names of all the inactive...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just wanted to check, as this isn’t what you asked for in your original request.
To delete all user group memberships, you can use:
lp bulkupdate users delete "permission ~~ group.%"
(this has always worked)
As of the latest commit, you can also use:
lp bulkupdate users delete
which will delete absolutely everything. All users, including their permissions, group membership, prefixes, etc.
Alright, thanks. Until when do you think you’ll be able to add this?