- HelloID API key and secret
- Pre-defined variables:
portalBaseUrl,portalApiKeyandportalApiSecretcreated in your HelloID portal.
This code snippet will remove an existing group from an existing group within HelloID and executes the following tasks:
- Define a hash table
$formObject. The keys of the hash table represent the properties necessary to remove an existing group from an existing group withinHelloID, 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.
{
"groupToRemoveGUID": "9f2c94e5a-7881-455a-a727-3fafd9d926e0",
"groupToRemoveName": "John Doe's group To Remove",
"groupGUID": "9509133d-8ae4-48bf-a2cb-e0f31cae4deb",
"groupName": "John Doe's group"
}❗ It is important to note that the names of your form fields might differ. Ensure that the
$formObjecthash table is appropriately adjusted to match your form fields. See the HelloID API Docs page
-
Creates authorization headers using the provided API key and secret.
-
remove an existing group from an existing group using the:
Invoke-RestMethodcmdlet. The hash table called:$formObjectis passed to the body of the:Invoke-RestMethodcmdlet as a JSON object.