As part of a user deprovisioning task, I'm looking to create a custom command that exports a list of the departing managers direct reports to a text file, which can be saved on a shared drive, and then moves all of those direct reports to another user. I've got the moving of the direct reports part working thanks to some of the information in your knowledge base, but I can't figure out how to do the export to the text file. Any assistance would be greatly appreciated.

by (40 points)

1 Answer

by (306k points)
0 votes

Hello Adrian,

It is something that can only be done using a PowerShell script. Unfortunately, we do not have anything like that in our repository. However, you can check script Preserving the list of groups from the following article: https://www.adaxes.com/script-repository/remove-all-group-memberships-for-a-user-account-s33.htm. The approach for your case should be the same.

Related questions

I need to be able to move a Managers direct reports to another Manager in the event of promotion or resignation. I want to create this as a selectable action, rather than making it part of an existing custom command.

asked Sep 15 by adrian.watson (40 points)
0 votes
1 answer

We have a need to add users who have direct reports to a security group. We're currently using, If the Direct Reports' property is not empty, but this also grabs users ... has to do with the recipientTypeDetails, but I can't figure out how to implement it.

asked Jul 1 by srisingerOMF (20 points)
0 votes
1 answer

Ideally looking to make this a rule based group, but report or business unit should work also. In our domain, service accounts become direct reports of the user who requested/ ... if a specific object is a/not a direct report. Is this possible? Thank you

asked Nov 14, 2023 by ThompsonAlex (40 points)
0 votes
1 answer

Hello, Similar to exporting the members of a group to a csv file: https://www.adaxes.com/script-repository/export-group-members-to-csv-file-s184.htm I am looking to ... would like to include the memberof csv report in the email as well. Thanks in advance!

asked Feb 7, 2023 by JonnyBGood (20 points)
0 votes
1 answer

We have the following script we need fixed to run within Adaxes to add true/false value to a customattribute for use in building dynamic distribution lists. $users = ... } else { Set-Mailbox -Identity $user.Name -CustomAttribute8 "Individual contributor" } }

asked Jul 13, 2022 by willy-wally (3.2k points)
0 votes
1 answer