0 votes

My org has decided to create LDAP fields to replace some of the custom Adaxes fields. how can I copy the following fields?

adm-CustomAttibuteDate1 > ldapDate1
adm-CustomAttibuteText1 > ldapInteger1

I need to be able to run the job for all user object in AD.

by (1.3k points)

1 Answer

0 votes
by (288k points)
selected by
Best answer

Hello,

You can create a Scheduled Task configured for the User object type that will run just once. The task will update values of new attributes with those of corresponding Adaxes custom attributes using value references. For information on how to create Scheduled Tasks, see https://www.adaxes.com/tutorials_Automa ... gement.htm. Additionally, the task can also clear the custom attributes if required. Finally, it will look like the following:

0

I am not able to type in the box to to set the field I'm trying to copy from. I have attached both Screen Shot


Adaxes version
2017.2
3.8.14823.0

0

Hello,

When using the Update the User action to modify dates, you need to use the Edit button to specify the value to be set.

As we understand, usrAdaxesSN-NonBillID is an Integer property. It means that in the New Value field, you can enter only digits. In Adaxes version 2017.2 it was not possible to enter value references for Integer properties in the action.

0

Okay, So how can I copy one field into another if I can't use value references? Is there a way using powershell?

0

Hello,

Yes, it is possible using PowerShell. You will need a script like below. In the script:

  • $propertyToCopy - Specifies the LDAP name of the property whose value will be copied to another property.
  • $propertyToSet- Specifies the LDAP name of the property to update.
$propertyToCopy = "adm-CustomAttributeText1" # TODO: modify me
$propertyToSet = "adm-CustomAttributeInt1" # TODO: modify me

try
{
    $valueToCopy = $Context.TargetObject.Get($propertyToCopy)
}
catch
{
    $valueToCopy = $NULL
}

$Context.TargetObject.Put($propertyToSet, $valueToCopy)
$Context.TargetObject.SetInfo()

Related questions

0 votes
1 answer

For the action copy user, under object selection I choose objects selected by the user, copying from the user who gets the email. Location selection is the OU I ... the source user. Is it possible to erase that automatically and reapply the property pattern?

asked Mar 24, 2023 by GronTron (320 points)
0 votes
1 answer

I would like to have the possibility to use different icons for AD groups. I have groups for file permissions, applications, mailboxes, etc. For each group type I ... do this without schema extension? or will this be possible in the future? regards pudong

asked May 6, 2022 by pudong (680 points)
0 votes
1 answer

Thanks for the info. I'm now grabbing the %adm-ManagerUserName% value, but need to remove the final 21 characters of it so it contains only their username and not our ... this in the PowerShell Script Editor for my business rule, I get the following error:

asked Mar 11, 2021 by mkvidera (60 points)
0 votes
1 answer

Is it possible to change the visibility of required fields in Adaxes 2020.1 as it was with the old Webinterface and custom css for every Webinterface-instance? Thanks

asked Nov 6, 2020 by Michel (20 points)
0 votes
1 answer

As part of our HR onboarding process, they need to specify non-AD integrated software requirements. Is there a way to have a customised field on the form that when ticked or ... say the name of the software and have it linked to a particular field in AD.

asked Apr 15, 2020 by russmerriman (40 points)
3,539 questions
3,230 answers
8,225 comments
547,764 users