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 (20 points)

1 Answer

0 votes
by (18.0k 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

I am using this script to remove all users from groups when they are terminated. This script doesn't remove users from Azure only groups just on prem. How would I change ... .LogMessage("Can not remove $U from $GN"+$_.Exception.Message, "Information") } }

asked Jun 18 by mightycabal (1.0k points)
0 votes
1 answer

I would like to have a script that removes the offboarded users from all teams groups

asked Jan 3 by bodson (20 points)
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 (100 points)
0 votes
1 answer

Is it possible to use Property Patterns for Parameters in custom commands? I would like to be able to restrict certain characters that users are inputting, especially since some of these parameters are used for logon names etc. Thanks

asked Aug 19, 2020 by bavery (250 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, 2020 by hgletifer (1.3k points)
3,548 questions
3,239 answers
8,232 comments
547,814 users