Is there a way to use IF, THEN, ELSE in the creation of a user? We want to capture First Name, Last Name and Preferred Name and if the Preferred Name field is empty, then the users Username and E-mail will be Firstname.Lastname but if there is a Preferred Name entered, then the users Username and E-mail will be Preferredname.Lastname (ie Tim.Smith@domain.org) and then ideally we would want to auto create an alias e-mail address in EXO with Firstname.Lastname (ie Timothy.Smith@domain.org) as well. Is that possible?

by (50 points)

1 Answer

by (308k points)
Best answer
0 votes

Hello,

Yes, it is possible. The following tutorials should be helpful:

Related questions

Is there a way for Adaxes to use a user's Microsoft 365 profile pictures instead of having to select a file on a per user basis?

asked Feb 1, 2024 by keneth.figueroa (20 points)
0 votes
1 answer

For any given AD attribute, I'd like to be able to retrieve the defined friendly name for it. Example: l = City, st = State, etc. Is there a way to do that in PowerShell? Thanks!

asked Aug 8, 2025 by jaymallery (60 points)
0 votes
1 answer

Is there a way to get the name of the user who approved a request and supply that to a step inside of a custom command? For example, HR submits a status change for an employee. ... and pass it as a param in a custom command that is called in one of the steps?

asked May 12, 2021 by davfount90 (20 points)
0 votes
1 answer

I know there is a way to CC using a script, but I want to know if there is a way to CC recipients on an email with the "Send Email notification" action. We currently have ... goes out to the manager and CC's myself and the other admin. Is this possible to do?

asked Feb 4 by Keshstew (20 points)
0 votes
1 answer

We need to have a process to revoke the access token used by Okta for end users.

asked Jan 22 by william.malone (100 points)
0 votes
1 answer