0 votes

I am doing a proof of concept deployment of Adaxes and I am struggling with something that I believe is easy to correct.

I am using the web form to create a new user with a space in it's name. I want to remove that space for username and email address however I am not sure how to accomplish that. I have the user pattern setup to use first initial and last name with the default regex check. I also have a rule before user creation calling the powershell script to check the mail AD attribute and modify it if it does contain it. The web UI, however, appears to be following the regex check immediately and stopping the process.

In the web UI preview it is showing the unmodified email address with a space, plus an error "The format of the specified e-mail address is invalid. Please specify a valid e-mail." and thde contraint "Constraints The value must match the following regular expression: '^[a-zA-Z0-9.%-+]+@([a-zA-Z0-9-]+.)+[a-zA-Z0-9_-]+$'."

What did I miss for this config?

by (20 points)

1 Answer

0 votes
by (206k points)

Hello,

This behavior is by design. The property pattern takes effect prior to triggering the business rule. To achieve the desired behavior, you need to remove the regular expression check from the property pattern and perform it in your script along with removing spaces. You can use the following script from our repository: https://www.adaxes.com/script-repository/remove-spaces-from-property-value-and-validate-it-against-regualar-expression-s299.htm.

0

Easy, that works for me. Thank you!

Related questions

0 votes
1 answer

Due to company requirements, I need to customize the Reset Password screen presented in the Self Service and Help Desk sites, but I haven't found how to do the specific changes I ... Web Customization or do I have to go into the actual text files to do this?

asked Jan 29, 2013 by danftasc (440 points)
0 votes
1 answer

I am evaluating Adaxes. I noticed that the web interface does not allow modification of the External Email Address (ms-Exch-Target-Address). What would someone do if they needed to change the Target Address?

asked Aug 6, 2020 by ComputerHabit (790 points)
0 votes
1 answer

Hello, i have a custom command which sets the oof-message for the selected user. in this custom command i have a parameter "param-vertretung" (ad-object picker). Now i want to ... and email of the stand-in in the oof-message. Can you help me with that? Thanks

asked Nov 13, 2020 by lohnag (100 points)
0 votes
1 answer

I am trying to create a web form for HR that only collects the info from the Create User form and emails the info to the helpdesk. I have seen some other examples of form ... submit for approval, but that is not what I am trying to do. Any ideas? Thanks,

asked Feb 7, 2018 by Jasonmh (540 points)
0 votes
1 answer

Hello, I am looking for a way with a custom command or script to change ExtensionAttribute4 for all users in a specific OU(and Sub-OU's). Currently all of the ... change them to firstname.lastname@yyy.com just changing the field after the @ symbol. Thank You

asked Mar 19, 2016 by Infounlim (470 points)
2,554 questions
2,297 answers
6,126 comments
662,118 users