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 (289k 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

Hello, I want to include in a sent email notification after removing a member from a group the active directory user property "company" and "co" of a user. How can I achieve this? I can not select a property %adm-membercompany% nor %adm-memberco"

asked Jun 7 by fabian.p (380 points)
0 votes
1 answer

Hi team, is it possible, to change the shown name of fields during the creation with a web form? For example my customtext1 is called "Temp Name" and on the web interface I would like to show "Select username"

asked Jul 10 by wintec01 (1.5k 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

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 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)
3,548 questions
3,238 answers
8,232 comments
547,810 users