I have made a deprovision custom command. I cannot change the attribute directReports, so was thinking - i could take the people in the directReports field of the manager , and remove the manager in those employees attributes.

Id like the manager to be set to blank, not changed to another manager.

Ive found some scripts that go over all the disabled users, but id like it to only run and change attributes for the manager user (and its subordinates) that im running the deprovision custom command from. Any tips?

by (110 points)

1 Answer

by (16.4k points)
Best answer
0 votes

Hello,

The script in the following repository article does exactly what is required: https://www.adaxes.com/script-repository/remove-direct-reports-from-manager-s5.htm.

Related questions

Here is what i have been trying with Set-ADUser -Identity $user -Clear "extensionAttribute5" Set-ADUser -Identity $user -Add @{extensionAttribute5 = "NoLicenseNeeded"}

asked Nov 29, 2021 by Markh (20 points)
0 votes
1 answer

Hello, We are currently rolling out a deployment for Windows Hello. For this, we have created a custom automation in Adaxes for users to have to reset their passwords on ... this group? Or, do you have another recommendation for getting this done? Thank you.

asked Mar 26 by aewilliams.324 (20 points)
0 votes
1 answer

Hi, I followed this example: https://www.adaxes.com/sdk/IAdmTop6.html, but because the Custom Command is disabled, I get the following error message: System.Management.Automation ... if I enable the Custom Command. I am using Adaxes 2018.2 Best Regards Martin

asked Feb 19, 2020 by Martin (190 points)
0 votes
1 answer

We are trying to do a report on weak passwords, but i dont think adaxes is able to?

asked Mar 16, 2022 by marcwoollard (40 points)
0 votes
1 answer

The csv I am using contains firstname,lastname,fullname,pass I will use fullname for both fullname and log on name and pass for the password.

asked Mar 26 by mightycabal (1.2k points)
0 votes
1 answer