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

Hi, I'm going through my first Adaxes upgrade, from 2013.1 to 2014.1. I don't see all the properties I think are configured in the simple search. Config: Search ... 'd really like to sort these values in the "Available Columns" file, is that possible?

asked Dec 23, 2014 by theckel (520 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)
3,589 questions
3,278 answers
8,303 comments
548,115 users