question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clear all users from all groups

See original GitHub issue

Hey! 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:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
luckocommented, Feb 10, 2018

How can I do this correctly? I want to simply RESET all players, all their permissions and all their groups.

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.

0reactions
TrademarkTMcommented, Feb 9, 2018

Alright, thanks. Until when do you think you’ll be able to add this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found