Auto-populate company name when creating users

Adaxes allows you to assign a default value to any object property. If a property has a default value, it is automatically filled into the corresponding field on the object creation form. If the form doesn't contain the field or if an object is created using a script, the property is automatically set to the default value.

To set default values for object properties, you need to use property patterns. Adaxes provides a built-in User property pattern that is applied to all user accounts by default. In this tutorial, you will learn how to use the property pattern to assign a default value for the Company property of user accounts.

  1. Launch Adaxes Administration console.

     How { #collapse1}
    • On the computer where Adaxes Administration console is installed, open Windows Start menu.

    • Click Adaxes Administration Console.

  2. Expand Adaxes service \ Configuration \ Property Patterns \ Builtin and select User.

  3. In the section located to the right, click Add and then click Company in the drop-down list.

  4. In the Generate default value field, type a default value for the property.

  5. If necessary, configure other options for the property. For example, you might want users to select a company from a drop-down list or make Company a required field.

     How { #howto_otheroptions}
    • Select checkbox The property is required.

    • Select Must be one of the following values only and click Edit to specify the list of allowed values.

  6. Click Save changes.

Any changes made to built-in property patterns can be discarded. To do it, right-click a property pattern and click Restore to Initial State in the context menu.

Different patterns for different users

By default, property pattern User is applied to scope All Objects.

This means that the list of allowed values for the property will be the same for all users in all domains managed by Adaxes. If you want to apply different settings for different organizational units or domains, you need to create a separate property pattern for each OU or domain.

 How to create a property pattern { #howto_multiple_pattern}
  • Right-click Property Patterns, point to New and click Property Pattern.

  • Enter a name for the new property pattern and click Next.

  • On the Object Type step, select User.

    Click Next.

  • On the Configuration step, configure options for a property and click Next.

  • On the Activity Scope step, click Add.

    Select from the following items:

    • Domain – select to apply the property pattern to all users in a specific domain.

    • OU or Container – select to apply the property pattern to users in an organizational unit or container.

    • Group – select to apply the property pattern to members of a group.

      Assignments over group members are not applied during user creation.

    • Business unit – select to apply the property pattern to members of a business unit. To select a business unit, open the Look in drop-down list and select the Business Units item.

    You can exclude specific organizational units, business units, groups, and domains from the activity scope of the property pattern. For example, if you've the property pattern over the whole domain, but do not want it to apply to a specific organizational unit, you can exclude the organizational unit from the activity
    scope. To exclude an object, select the Exclude the selection option in the Assignment Options dialog box.

     Step by step { #exclude_scope}
    • Click the object you want to exclude.

    • In the Assignment Options dialog, select the Exclude the selection option.

    • Click OK.

  • When done, click Finish.