Get-DSADGroup
Synopsis
Get groups from a domain user PAM provider
Syntax
__AllParameterSets
Get-DSADGroup [-ProviderID] <guid> [[-DN] <string>] [-AsJITSettings] [-AsLegacyResponse]
[<CommonParameters>]Description
Get groups from a domain user PAM provider. It returns the groups of the oganizational unit specified by DN. If the DN parameter is not used, it will look at the root. It is not possible to fetch all groups directly. The data returned can be added to the JIT settings' authorized groups of the provider.
Examples
PS C:\> $getResponse = Get-DSPamProvider
$provider = $getResponse | Where Label -eq 'MyDomainUserProvider'
$desiredGroups = Get-DSADGroup -ProviderID $provider.ID -DN 'OU=Test,DC=mydomain,DC=loc'
$provider.JitElevationSettings.AuthorizedGroups = $desiredGroups
Update-DSPamProvider -InputObject $providerAdd all groups of the 'Test' organizational unit in the JIT settings' authorized groups of the provider 'MyDomainUserProvider' and save the modification
Parameters
-AsJITSettings
Return the object as the JIT settings value. Useful it is not initialized in the provider.
-AsLegacyResponse
In versions prior to 2024.2, many DS cmdlets returned a ServerResponse object. Enabling this backward compatibility switch allows scripts developed for earlier versions to function correctly.
-DN
Distinguished name of the container searched
-ProviderID
PAM Provider to obtain the domains from
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Notes
For more information, type "Get-Help Get-DSADGroup -detailed". For technical information, type "Get-Help Get-DSADGroup -full".
Last updated
Was this helpful?