custom/Get-BcUserByGroup.ps1
Function Get-BcUserByGroup { [cmdletbinding()] param ( [string]$GroupId ) $query = @{ includeSubgroups = $true skip = 0 take = 100 SortDirection = 0 filter = @{ Left = 'Groups' Operator = '=' Right = $GroupId } } (Invoke-BcQueryUser -Query $query).Items } |