https://github.com/tools4everbv/helloid-task-sa-target-azureactivedirectory-groupupdateattributes
Azure Active Directory - Group update attributes
https://github.com/tools4everbv/helloid-task-sa-target-azureactivedirectory-groupupdateattributes
azure-active-directory delegated-form powershell product service-automation task
Last synced: 2 months ago
JSON representation
Azure Active Directory - Group update attributes
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-target-azureactivedirectory-groupupdateattributes
- Owner: Tools4everBV
- Created: 2023-03-10T13:07:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T15:38:21.000Z (over 1 year ago)
- Last Synced: 2025-01-08T10:45:39.446Z (4 months ago)
- Topics: azure-active-directory, delegated-form, powershell, product, service-automation, task
- Language: PowerShell
- Homepage:
- Size: 34.2 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-AzureActiveDirectory-GroupUpdateAttributes
## Prerequisites
Before using this snippet, verify you've met with the following requirements:
- [ ] AzureAD app registration
- [ ] The correct app permissions for the app registration
- [ ] User defined variables: `AADTenantID`, `AADAppID` and `AADAppSecret` created in your HelloID portal.
- [ ] Please see our documentation on how to create custom variables: (https://docs.helloid.com/en/variables/custom-variables.html)## 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 `` 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
{
"displayName": "DisplayName",
"description": "Description",
"groupIdentity": "groupID"
}
```> :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.
> [See the Microsoft Docs page](https://learn.microsoft.com/en-us/graph/api/group-update?view=graph-rest-1.0&tabs=http)2. Receive a bearer token by making a POST request to: `https://login.microsoftonline.com/$AADTenantID/oauth2/token`, where `$AADTenantID` is the ID of your Azure Active Directory tenant.
3. update the attribues of a group using the: `Invoke-RestMethod` cmdlet. The hash table called: `$formObject` is passed to the body of the: `Invoke-RestMethod` cmdlet as a JSON object.