Hello all,
I am trying to remove all licenses from suspended users in an OU. The command from
this site produces an error that initially indicates there is no ~primaryEmail header. When I tried to troubleshoot by removing the part after the pipe and just executing this:
gam print users query "orgUnitPath='/Path/To/User OU' isSuspended=true"
I find that the query is actually not being accepted.
Does anyone know what the correct query should be?
Also, along that same line of inquiry, I'd also like to add a license SKU to anyone in that OU who does not have the license but is active. Assuming the query problem is fixed, can I jiust replace DELETE with ADD and change IsSuspended=false or is there a different command for it?
Appreciate if anyone can point me in the right direction.
M