0 votes

Have this half figured out, but can't remember where I found the instructions.

I want to put a drop down list on the specific Create User form I created for our Help Desk to use. I want to put a list of email domains and then after or before user creation, fill in firstname.lastname@domainchosen in the user objects mail attribute. I was hoping to use one of Adaxes custom attributes for the list, but want to name it Email Domains on the form. Next, how do I take what was selected in the custom attribute and make an email address.

Thanks for the help again

by (1.2k points)

1 Answer

0 votes
by (216k points)

Hello,

It is possible to do as you've described with Adaxes. First of all, you need to impose constraints on the Adaxes virtual property that will be used for selecting the email domain with a Property Pattern and specify a list of available domains. Then, you can create a Business Rule that will be executed after creating a user and that will set the Email property of the newly created user to the value generated from the user's first name, last name and the chosen email domain. Also, you can add the property that you chose to pass the email domain to the Web Interface form used for user creation so that it would be possible to select the email domain when creating a user. Finally, you can customize the display name for the Adaxes virtual property that you've chosen and give it your own name. To do this:

I. Impose constraints on the Adaxes virtual property.
For this purpose you can modify the built-in User Pattern:

  1. In the Console Tree, expand the service node that represents your Adaxes service.
  2. Navigate to Configuration -> Property Patterns -> Builtin and select the User Pattern.
  3. Click Add... at the top of the Result Pane (located on the right), and select Show all properties.
  4. Select the virtual property on which you want to impose constraints.
  5. In the dialog box that appears, you can impose various constraints on the property. For an example on how to specify a list of predefined values to select from a drop-down list, see step 5 of the Specify List of Departments to Avoid Repetitive Typing Tutorial.
  6. When finished, save the modified Property Pattern.

II. Create a Business Rule that will update the Email property.
To create a Business Rule that will update the Email property:

  1. Create a new Business Rule.

  2. On the 2nd step of the Create Business Rule wizard, select User and After Creating a User.

  3. On the 3rd step, add the Update the User action and click Add.

  4. In the dialog box that appears, select the Email property in the Property to modify drop-down list.

  5. Type the template for email generation in the New value field. For example, if you chose the CustomAttributeText1 property to pass the email domain, the template will be %firstname:lower%.%lastname:lower%@%adm-CustomAttributeText1%.

    %firstname:lower%, %lastname:lower% and %adm-CustomAttributeText1% are value references that will be replaced with the values of the First Name (lowercased), Last Name (lowercased), and CustomAttributeText1 properties of the user when the Business Rule will be executed. For more information on value references, see Value Reference Format.

  6. Click OK.

  7. Click Add again.

  8. In the dialog box that appears, expand the Property to modify drop-down list and select Show all properties.

  9. Select the virtual property that you chose to pass the email domain.

  10. Switch the radio button to Remove property.

  11. Click OK. This will remove the property after the Business Rule is executed as we no longer need it.

  12. Click the Add Condition button.

  13. Select the If <property> <relation> <value> condition.

  14. Expand the <property> drop-down list and select Show all properties.

  15. Select the virtual property that you chose to pass the email domain.

  16. Select is not empty.

  17. Click OK and finish creation of the Business Rule.

III. Customize Web Interface form for user creation.
To customize the Web Interface form used for user creation:

  1. On the computer, where your Web Interface is installed, start the Web Interface Customization tool.
  2. Select the Web Interface that you want to configure in the Interface type drop-down list.
  3. Activate the AD Management tab and click Customize Forms and Views.
  4. In the Object types list (located on the left), select the User object type.
  5. Activate the Create tab.
  6. Select the section that you would like to add the property to in the list above.
  7. Click the Add button located under the Section fields list.
  8. In the dialog box that appears, select the Show all properties option and select the virtual property that you chose to pass the email domain.
  9. Click OK 3 times.

IV. Customize the display name for the property.
As a name like CustomAttributeText1 will not tell much to your user about the meaning of the field, you want to give it your own name. See Customizing Display Names for AD Properties on how to accomplish this task.

Related questions

0 votes
1 answer

For creating a computer object, we want to check if the entered CN is already used in our AD. And for that we want to use a powershell script. An other dot ... powershell script should be start before creating the computer object, right? Thanks for your help.

asked Jun 4 by KEME (80 points)
0 votes
1 answer

I would like to create a custom command to prompt for a user and a date, and apply that date to CustomTimestamp1 on the user. This is for de-provisioning users ahead of time. When the Custom TimeStamp date is reached I will call the deprovisioning script.

asked Mar 6, 2015 by Infounlim (470 points)
0 votes
1 answer

Hi, I would like to setup the self-service with a list of required hardware, printers applications etc for someone to select when creating a new user. Then when the user is ... this can be done under custom forms but im not exactly sure how to do this.

asked Dec 4, 2023 by STIG (40 points)
0 votes
1 answer

Hi there we use personal identity number in one of our customattribute. How would you script this so it checks that the number that we specify when filling out the form ... process should be interupted and we then know that that user already has an account.

asked Jun 19, 2019 by ahok (50 points)
0 votes
1 answer

Is there a way to create a Business Unit that includes all Users in a OU that a Manager is in the ManagedBy field?

asked Mar 21 by dominik.stawny (280 points)
3,589 questions
3,278 answers
8,303 comments
548,153 users