Public/DirectoryBrowser/Search-R1DirectoryEntryMember.ps1
|
# .ExternalHelp psRadiantOne-help.xml function Search-R1DirectoryEntryMember { [CmdletBinding()] [OutputType('psRadiantOne.Entry')] param( [parameter( Mandatory = $true, ValueFromPipelineByPropertyName = $true )] [ValidateNotNullOrEmpty()] [string]$dn, [parameter( Mandatory = $true, ValueFromPipelineByPropertyName = $true )] [ValidateSet('USERS', 'GROUPS')] [string]$type, [parameter( Mandatory = $false, ValueFromPipelineByPropertyName = $true )] [ValidateLength(0, 5000)] [string]$keywords ) Begin { Assert-R1Session -RequireToken }#begin Process { $URI = Resolve-R1ServiceUrl -Service Browser -Path 'directory_browser/members/explicit/search' $Body = $PSBoundParameters | Get-Parameter | ConvertTo-R1JsonBody $Result = Invoke-R1RestMethod -Uri $URI -Method POST -Body $Body if ($null -ne $Result) { $Result | Add-CustomType -Type psRadiantOne.Entry } }#process End { }#end } |