Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tools4everbv/helloid-task-sa-source-azureactivedirectory-accountsearch
Azure Active Directory - User account search
https://github.com/tools4everbv/helloid-task-sa-source-azureactivedirectory-accountsearch
azure-active-directory data-source powershell service-automation
Last synced: 12 days ago
JSON representation
Azure Active Directory - User account search
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-source-azureactivedirectory-accountsearch
- Owner: Tools4everBV
- Created: 2024-01-29T15:32:38.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-31T07:54:57.000Z (12 months ago)
- Last Synced: 2024-11-10T22:35:25.493Z (2 months ago)
- Topics: azure-active-directory, data-source, powershell, service-automation
- Language: PowerShell
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HelloID-Task-SA-Source-AzureActiveDirectory-AccountSearch
## Prerequisites
- [ ] This script uses the Microsoft Graph API and requires an App Registration with App permissions:
- [ ] Read all user’s full profiles by using User.Read.All## Description
This code snippet executes the following tasks:
1. Define a wildcard search query `$searchQuery` based on the search parameter `$datasource.searchUser`
2. Creates a token to connect to the Graph API.
3. List all users in Azure AD using the API call: [List users](https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http)
4. Filter down to only users with `$searchQuery` in their `displayName` or `userPrincipalName`
5. 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.
```json
{
"searchUser": "James"
}
```