Jump to content

Recommended Posts

Posted

Just realised that when I suspend a user they are still a member of any groups they were in.

 

I seem to remember that opening the groups page it used to list suspended if someone was suspended, but it does not seem to do this anymore.

 

Is there a way to list suspended users and the groups they are a member of?

Posted (edited)

use gam

for all suspended users in an OU

./gam print users query "orgUnitPath='/Staff that have left' isSuspended=True" | ./gam csv - gam user ~primaryEmail delete groups

or for a single account

gam user delete groups

 

 

uh... i misread, i thought you wanted to clear out suspended users

Edited by DGardiner
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...