- 21 Aug 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Get-MSAzureGroup
- Updated on 21 Aug 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Return a list of groups from Azure AD.
Syntax
Get-MSAzureGroup
-Properties <String>
-Filter <String>
-TenantName <String>
-TotalCount
-HideProgressBar
-AuthToken <String>
-ResultSize <Int32>
-ProgressUpdateFreq <Int32>
Examples
Example 1
Get-MSAzureGroup
Returns all MS Azure groups
Example 2
Get-MSAzureGroup -Filter "startsWith(displayName,'Global-')"
Returns all MS Azure groups whose display names start with Global-
Example 3
Get-MSAzureGroup -Properties 'id,DisplayName' -AuthToken $AuthToken
Returns a list of Azure group ID and display names using a previously-obtained authtoken
Parameters
-Properties <String>
A comma-delimited list of properties to return in the results
Format as per https://docs.microsoft.com/en-us/graph/query-parameters?view=graph-rest-1.0#select-parameter
Available properties can be found at https://docs.microsoft.com/en-us/graph/api/resources/group?view=graph-rest-1.0#properties
Parameter | Value |
---|---|
Required | false |
Position | 1 |
Required | false |
Default Value | None |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-Filter <String>
Add filter parameters as per https://docs.microsoft.com/en-us/graph/query-parameters?context=graph%2Fapi%2F1.0&view=graph-rest-1.0#filter-parameter
Available properties can be found at https://docs.microsoft.com/en-us/graph/api/resources/group?view=graph-rest-1.0#properties
Parameter | Value |
---|---|
Required | false |
Position | 2 |
Required | false |
Default Value | None |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-TenantName <String>
The name of the Nectar DXP tenant. Used in multi-tenant configurations.
Parameter | Value |
---|---|
Required | false |
Position | 3 |
Required | false |
Default Value | None |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
-TotalCount <SwitchParameter>
Only return a total count of objects
Parameter | Value |
---|---|
Required | false |
Position | named |
Required | false |
Default Value | False |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-HideProgressBar <SwitchParameter>
Don't show the progress bar. Cleans up logs when running on Docker.
Parameter | Value |
---|---|
Required | false |
Position | named |
Required | false |
Default Value | False |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-AuthToken <String>
The authorization token used for this request. Normally obtained via Get-MSGraphAccessToken
Parameter | Value |
---|---|
Required | false |
Position | 4 |
Required | false |
Default Value | None |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
-ResultSize <Int32>
The number of results to return. Defaults to 1000.
Parameter | Value |
---|---|
Required | false |
Position | 5 |
Required | false |
Default Value | 0 |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-ProgressUpdateFreq <Int32>
Parameter | Value |
---|---|
Required | false |
Position | 6 |
Required | false |
Default Value | 1 |
Accept pipeline input? | false |
Accept wildcard characters? | false |