I edited a custom attribute in Adaxes, and manually entered the value for each Org Unit.

When I attemp tto ge tthat property in Adaxes, it gives me an empty value. I'm sure I am misisng something simple.

Script I am using, with OU distringuished name

Get-AdmOrganizationalUnit -Identity "OU=Test City Adaxes,OU=City Users,DC=Company,DC=ORG" -Properties "%adm-CustomAttributeText3%" | Select-Object "%adm-CustomAttributeText3%"

Even if I use this broad one, it still coems up empty

Get-AdmOrganizationalUnit -Filter * -Properties "%adm-CustomAttributeText3%" | Select-Object "%adm-CustomAttributeText3%"

I've renamed the property to "City Name." You can see at the bottom of the image below that this value does contain data

image.png

ago by (370 points)

1 Answer

ago by (16.4k points)
0 votes

Hello,

First of all, you need to specify the schema name of the property in the cmdlet, not a value reference to the property. Additionally, to get the values of Adaxes custom attributes, you need to specify the -AdaxesService parameter when using cmdlets from the Adaxes PowerShell module. Finally, to get a value of the adm-CustomAttributeText3 property, the command should look like this:

Get-AdmOrganizationalUnit -Identity "OU=Test City Adaxes,OU=City Users,DC=Company,DC=ORG" -AdaxesService "adaxes.domain.com" -Properties "adm-CustomAttributeText3" | Select-Object "adm-CustomAttributeText3"

Related questions

I had a business rules that had a PowerShell script to update User properties in a SQL table. It was working fine. I moved the PowerShell to a custom command so I could ... in the custom command does get the values for the User object. Am I missing something?

asked Jun 2, 2014 by sdavidson (730 points)
0 votes
1 answer

So I need to export a list of all user's Line URI's to a CSV file. Running Adaxes 2021 Version 3.14.18804.0 (64 bit) and Teams Powershell 4.1.0 ... a Microsoft 365 account } finally { # Close the connection and release resources Disconnect-MicrosoftTeams }

asked Aug 4, 2022 by TheLexicon (200 points)
0 votes
1 answer

I'm seeing this error when I run a user deprovision. It still executes the script but nobody likes errors! Run PowerShell Script 'DuoDeprovisionExport' For the user. The term ' ... running an export script in the first place for my Duo user info. ) Thanks.

asked Feb 19, 2020 by rainamaina (60 points)
0 votes
1 answer

Any idea why Softerra.Adaxes.Adsi.Search.DirectorySearcher is not getting loaded? PS C:\Windows\system32> [Reflection.Assembly]:: ... Object], PSArgumentException + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

asked Aug 14, 2019 by Brajesh (460 points)
0 votes
1 answer

Hello, I'm trying to execute a custom command through a Powershell script, but I'm struggling to pass multiple values to an AD Object Picker parameter. ... , $NULL, $NULL, 0) $obj.ExecuteCustomCommand($command.CommandID, $commandArguments) Thanks in advance!

asked Nov 24, 2021 by KelseaIT (330 points)
0 votes
1 answer