Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tools4everbv/helloid-task-sa-source-azureactivedirectory-groupgetdetails

AzureActive Directory - Group get details
https://github.com/tools4everbv/helloid-task-sa-source-azureactivedirectory-groupgetdetails

azure-active-directory data-source powershell service-automation

Last synced: about 1 month ago
JSON representation

AzureActive Directory - Group get details

Awesome Lists containing this project

README

        

# HelloID-Task-SA-Source-AzureActiveDirectory-GroupGetDetails

## Prerequisites
- [ ] This script uses the Microsoft Graph API and requires an App Registration with App permissions:
- [ ] Read all group memberships GroupMember.Read.All

## Description

This code snippet executes the following tasks:

1. Define `$groupId` based on the `selectedGroup` data source input `$datasource.selectedGroup.Id`
2. Creates a token to connect to the Graph API.
3. List group's details using in Azure AD using the API call: [Get group](https://learn.microsoft.com/en-us/graph/api/group-get?view=graph-rest-1.0&tabs=http)
4. Return a hash table for each user account using the `Write-Output` cmdlet.

> To view an example of the data source output, please refer to the JSON code pasted below and select the `Interpreted as JSON` option in HelloID

```json
{
"Id": "7d53a91f-dd9d-41b3-94fb-143bd2fc6854"
}
```