0 votes

Hi,
I would like to use the custom commands to deprovision an AD user.
Is there a way to automatically remove all groups (besides Domain Users which cannot be removed) from a user?

Thanks...

by (250 points)

1 Answer

0 votes
by (18.9k points)

Hello,

You can do it with the help of a script. Have a look at Example 2 in the following tutorial: Automatically Change Group Membership Using Scripts.

Related questions

0 votes
1 answer

Hi all, I need some help with this builtin script. It's a good foundation for what I'd like to do but I need to be able to keep the user in two groups (one, ... this, some kind of output log of the tasks completed on the deprovisioned user).. Thank you!

asked Nov 30, 2017 by adriank (510 points)
0 votes
1 answer

Hi Guys, Short question. In our organisation we have a buch of the security group that have a specific "class". The class is simple number stored in the ExtensionAttribute1. I'd ... tried to do the something like that with ADSI :cry: Could you please help me?

asked Dec 8, 2014 by axmaster (2.7k points)
0 votes
1 answer

All of our custom command use %adm-CustomAttributeText1% and we want to update that feild to department. Is there a script that we could run that will look trough out custom commands and charng from one to the other?

asked Feb 28 by hgletifer (5.8k points)
0 votes
1 answer

Like remove all users from full access other than User1, User 2, & User3?

asked Oct 29, 2019 by hgletifer (5.8k points)
0 votes
1 answer

In the de-provisioning process, I need to remove all users from all Office 365 groups (UnifiedGroups). I tried to adapt this script but unsuccessfully. https://www.adaxes.com/script-repositor ... -s360.htm Is there any way to do this?

asked Sep 22, 2019 by flaviodouglas (480 points)
2,181 questions
1,946 answers
5,391 comments
5,202 users