0 votes

I have two issues with custom attributes.

1. I have added the When Marked for Deletion and another custom property we made as an available column in the search results, but the data is never shown. If I go to the view form for the user object, I am able to see data for these properties. Is there something I need to do to be able to see the data in these properties in the search results column?

2. Can the Adaxes PowerShell commands access these custom properties? I have tries to query users with When Marked for Deletion and I am unable to figure out how to get get-admuser to use this property.

by (1.2k points)

1 Answer

0 votes
by (216k points)

Update 2015

Starting with Adaxes 2015, you can retrieve values of custom attributes for objects using Adaxes cmdlets just the way you do it for other properties using the -Properties parameter. The attributes are available only in Adaxes and thus the -AdaxesService parameter is required to retrieve their values. For example:

$users = Get-AdmUser -Filter * -SearchBase "OU=My OU,DC=domain,DC=com" -AdaxesService localhost -Properties @("adm-CustomAttributeText1")

Original

Hello,

1. Searching by virtual properties is not supported. Virtual properties are also not fetched with search results, so even if you add the property as an available column, the property will not be fetched anyway.

2. Currently, you cannot get values for virtual properties using PowerShell cmdlets, but you can do this by using Adaxes ADSI API. For example, you can use the Get method of the IADs interface that is exposed by every directory object. For instructions on how to use the interface and a sample script, see the IADs article in our SDK. Also, if you are trying to get the value for a Custom Property in a PowerShell script executed by a Business Rule, Custom Command or Scheduled Task, you can use value references to get values for virtual properties. For example, %adm-WhenMarkedIncative% will return the When Marked Inactive property.

Related questions

0 votes
0 answers

I'm brand new to this product and am still learning, I apologize for what are presumably bonehead questions. Here goes: 1) We've got a Create Contact action set up ... the custom form Exchange-enables the group? Thanks for the information, A brand new user.

asked Oct 4, 2016 by ctdhelpdesk (190 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 (320 points)
0 votes
1 answer

I am wanting to export a list of users including the properties of a specific custom attribute. Ideally, I would be able to run a get-admuser and filter on a custom attribute, but even an excel report with the custom attributes would work. Is this possible?

asked Sep 9, 2021 by ggallaway (300 points)
0 votes
1 answer

Hi there, i've a custom command with multiple powershell scripts (for clearance reasons). If for example the frist script produces an error i Write an Error but the next ... tried with an simple exit 1; I only Write-Errors on issues. Kind regards, Constantin

asked Jul 23, 2021 by Constey (190 points)
0 votes
1 answer

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)
3,346 questions
3,047 answers
7,782 comments
544,982 users