0 votes

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

1 Answer

0 votes
by (11.1k points)
selected by
Best answer

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

0 votes
1 answer

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

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 (100 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

We are developing a process to mange mailboxes for terminated users. At the time of termination we would like to: convert the mailbox to a shared mailbox. Send an approval ... would run script to grant the manger access to the mailbox. Can this be done?

asked Oct 27, 2023 by mightycabal (1.0k points)
0 votes
1 answer

It is possible to make the Self Password reset Enrollment page only available from the internal network and block it from the internet ?

asked Jan 18, 2021 by wadiheid (20 points)
3,351 questions
3,052 answers
7,791 comments
545,083 users