https://github.com/tools4everbv/helloid-task-sa-target-helloid-userupdateattributes
HelloID - User update attributes
https://github.com/tools4everbv/helloid-task-sa-target-helloid-userupdateattributes
delegated-form helloid powershell product service-automation task
Last synced: 5 months ago
JSON representation
HelloID - User update attributes
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-target-helloid-userupdateattributes
- Owner: Tools4everBV
- Created: 2023-11-20T11:03:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-15T14:18:47.000Z (over 1 year ago)
- Last Synced: 2025-01-08T10:45:20.858Z (6 months ago)
- Topics: delegated-form, helloid, powershell, product, service-automation, task
- Language: PowerShell
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HelloID-Task-SA-Target-HelloID-AccountUpdateAttributes
## Prerequisites
- [ ] HelloID API key and secret
- [ ] Pre-defined variables: `portalBaseUrl`, `portalApiKey` and `portalApiSecret` created in your HelloID portal.## Description
This code snippet will update an existing user within HelloID and executes the following tasks:
1. Define a hash table `$formObject`. The keys of the hash table represent the properties necessary to update an existing user within `HelloID`, 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
{
"userName": "john.doe",
"firstName": "john",
"lastName": "doe",
"contactEmail": "[email protected]",
"isEnabled": "true",
"password": "P@ssw0rd1!",
"mustChangePassword": "true",
"employeeid": "12345678",
"title": "tester",
"department": "test",
"phonenumber": "0612345678",
"manager": {
"UserGUID": "8a6b62fc-dca3-4890-bacd-3db76c5e9152"
}
}
```
> Note: the 'userName' property serves as the identifier, indicating which user is being updated.
>
> :exclamation: It is important to note that the names of your form fields might differ. Ensure that the `$formObject` hash table is appropriately adjusted to match your form fields.
> [See the HelloID API Docs page](https://apidocs.helloid.com/docs/helloid/b432862fd92c6-update-a-user)2. Creates authorization headers using the provided API key and secret.
3. Update an existing using the: `Invoke-RestMethod` cmdlet. The hash table called: `$formObject` is passed to the body of the: `Invoke-RestMethod` cmdlet as a JSON object.