https://github.com/tools4everbv/helloid-task-sa-target-activedirectory-accountupdatemanager
Active Directory - User account update manager
https://github.com/tools4everbv/helloid-task-sa-target-activedirectory-accountupdatemanager
active-directory delegated-form powershell product service-automation task
Last synced: 2 months ago
JSON representation
Active Directory - User account update manager
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-target-activedirectory-accountupdatemanager
- Owner: Tools4everBV
- Created: 2023-02-28T09:22:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T15:09:24.000Z (over 1 year ago)
- Last Synced: 2025-01-08T10:45:41.000Z (4 months ago)
- Topics: active-directory, delegated-form, powershell, product, service-automation, task
- Language: PowerShell
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HelloID-Task-SA-Target-ActiveDirectory-AccountUpdateManager
## Prerequisites
- [ ] The HelloID SA on-premises agent installed
- [ ] The ActiveDirectory module is installed on the server where the HelloID SA on-premises agent is running.
## Description
This code snippet executes the following tasks:
1. Define a hash table `$formObject`. The keys of the hash table represent the properties of the `Set-ADUser` cmdlet, while the values represent the values entered in the form.
> To view an example of the form output, please refer to the JSON code pasted below.
```json
{
"UserPrincipalName": "",
"ManagerUserPrincipalName": ""
}
```> :exclamation: It is important to note that the names of your form fields might differ. Ensure that the `$formObject` hashtable is appropriately adjusted to match your form fields.
2. Imports the ActiveDirectory module.
3. Retrieve the user account object using the `Get-ADUser` cmdlet.
4. Retrieve the manager account object using the `Get-ADUser` cmdlet.
5. Update the manager using the `$user` object retrieved from step 3 and the `$manager` object from step 4