Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tools4everbv/helloid-task-sa-target-helloid-usercreate
HelloID - User account create
https://github.com/tools4everbv/helloid-task-sa-target-helloid-usercreate
delegated-form helloid powershell product service-automation task
Last synced: about 2 months ago
JSON representation
HelloID - User account create
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-target-helloid-usercreate
- Owner: Tools4everBV
- Created: 2023-10-30T15:02:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-15T14:18:04.000Z (12 months ago)
- Last Synced: 2024-01-15T18:40:41.577Z (12 months ago)
- Topics: delegated-form, helloid, powershell, product, service-automation, task
- Language: PowerShell
- Homepage:
- Size: 124 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-HelloID-UserCreate
## Prerequisites
- [ ] HelloID API key and secret
- [ ] Pre-defined variables: `portalBaseUrl`, `portalApiKey` and `portalApiSecret` created in your HelloID portal.## Description
This code snippet will create a new 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 create a new 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": "johndoe@enyoi.org",
"isEnabled": "true",
"password": "P@ssw0rd1!",
"mustChangePassword": "true",
"employeeid": "12345678",
"title": "tester",
"department": "test",
"phonenumber": "0612345678",
"manager": {
"UserGUID": "8a6b62fc-dca3-4890-bacd-3db76c5e9152"
}
}
```> :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/7d9592b2cfeed-add-a-user)2. Creates authorization headers using the provided API key and secret.
3. Create a new user using the: `Invoke-RestMethod` cmdlet. The hash table called: `$formObject` is passed to the body of the: `Invoke-RestMethod` cmdlet as a JSON object.