0 votes

I have a need to pull the last n characters from a value and append it to another (adding last 4 of mobile number to sAMAccountName). I see the way to get the first n characters of a value but have been unable to find a way to get the last n characters (http://www.adaxes.com/help/ValueReferen ... ormat.html). I can obviously do this with a powershell script after the account is created, but I need the username to be set this way at the time of creation, so if it already exists it will error out when trying to create it.

Any advice would be greatly appreciated.

Thanks!

by (270 points)

1 Answer

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

Hello,

Currently, this can be done only using a PowerShell script. The script can be executed by a Business Rule triggering Before Creating a User.

0

Thanks I was able to write a powershell script to execute before user creation.

Chris

Related questions

0 votes
1 answer

Hello, I don't find an attribute for the netbios name of managed Domains like adm-DomainDN? How can I add the NetBios name to a report like "All users"? regards Helmut

asked Mar 5, 2021 by a423385 (510 points)
0 votes
1 answer

Hello, I'm inserting a %datetime% value reference in the email notification action in a business rule. But the inserted time is UTC. How can I make it local time?

asked Jul 21, 2011 by sdd5533 (100 points)
0 votes
1 answer

Hi there, Adaxes looks great. It needs a bit of time to investigate all the features. I wonder how to upper lastname in a property pattern, to enforce strict naming convention. Any clue ? Thanks in advance

asked Mar 17, 2011 by sroux (800 points)
0 votes
1 answer

We have an AD Atturbute called HRManager which refferances AD accounts (like the manager attubute does) is there a way to get the email address of the referanced account in a script?

asked Jun 7, 2022 by hgletifer (1.3k points)
0 votes
1 answer

Hi, is it possible to save to an Adaxes attribute the value of the last Sign In from Azure AD? When we query users for Last Logon, we, of course, can only see the Last Logon value from AD It would be very useful to know the latest login in Azure AD as well

asked Jun 22, 2020 by manuel.galli (100 points)
3,588 questions
3,277 answers
8,303 comments
548,092 users