Hello,
To get values of Adaxes custom attributes when using cmdlets from the Adaxes PowerShell module, you need to specify the property names in the Properties parameter. The below example returns the MyGroup object with the value of the adm-CustomAttributeText1 and adm-CustomAttributeText2 properties:
Get-AdmGroup MyGroup -Properties @("adm-CustomAttributeText1", "adm-CustomAttributeText2") -AdaxesService localhost
To find all groups with certain values in custom attributes, you can use the following approach:
Get-AdmGroup -Filter * -Properties @("adm-CustomAttributeText1", "adm-CustomAttributeText2") -AdaxesService Localhost | Where-Object {$_."adm-CustomAttributeText1" -eq "MyValue1" -and $_."adm-CustomAttributeText2" -eq "MyValue2"}
Alternatively, you can consider using the Adaxes ADSI provider to connect to the service, bind to an object, and get property values. For information on how to write ADSI scripts, have a look at the following SDK article: https://www.adaxes.com/sdk/WritingAdsiScripts.