Active Directory management & automation

Disallow Specifying Telephones without Country Code

With the help of Adaxes it is possible to specify the format for any property of Active Directory objects. The format can be specified either with the help of regular expressions or using constraints like 'must start with', 'must not contain', etc. In this tutorial you will learn how to make phone numbers specified for Active Directory users to start with '+44'.

To configure Adaxes to verify that all phone numbers start with the country code, you need to create a Property Pattern for the User object type and specify certain constraints for the Telephone Number property.

1Launch Adaxes Administration Console, right-click your Adaxes service, point to New and click Property Pattern. The Create Property Pattern wizard will open.

Launching the Create Property Pattern wizard

2Enter the name for the new Property Pattern and click Next.

3Here you need to select the AD object type, properties of which the new Property Pattern will affect. As we want to specify the format for the Telephone Number property of user objects, select User in the Object Type list and click Next.

Selecting the object type

4 At the Configure Property Pattern, page you can specify value generation options and formatting constraints for the AD properties you need. Click Add and select the Telephone Number property from the drop-down list.

Select an AD object property.

5 In the Add Property Pattern Item dialog, select the Must start with option and type '+44' in the edit-box.

The Add Property Pattern Item dialog

Optionally, you can specify the format for the telephone numbers using a regular expression. For this purpose, perform the following steps:
  • Select the Must match regexp option.
  • In the edit box for this option, enter a regular expression, for example
    ^([\(]{1}[0-9]{3}[\)]{1}[ ]{1}[0-9]{3}[\-]{1}[0-9]{4})$.
  • Click the icon located next to the edit box and specify the error message that will be shown if a telephone number has an invalid format.

When finished, click OK and then click Next.

6 Here, at the Activity Scope page you need to specify where in Active directory a user must be located, or to what groups or Business Units it must belong to be affected by the Property Pattern. Click Add.

Specifying activity scope for the Property Pattern

7 In the Property Pattern Activity Scope dialog that opens, select one of the following items:

  • All Objects - select if you want this Property Pattern to be effective when creating or modifying any user in any AD domain managed by the Adaxes service.

  • Specific Domain - select if you want this Property Pattern to be effective when creating or modifying any user in the AD domain you specify.

  • OU or Container - select if you want this Property Pattern to be effective when creating or modifying any user located under the selected OU or container.

  • Group - select a specific group if you want this Property Pattern to be effective when modifying users that are members of the selected group.

  • Business Unit - select a Business Unit if you want this Property Pattern to be effective when modifying users that are members of the selected Business Unit. To view available Business Units, select the Business Units item in the Look in drop-down list.
  • Viewing Business Units

Select the item you need and click Add. When finished, click OK.

8 The specified activity scope items will be displayed in the Assignments list. Click Finish.

Now, when the Property Pattern is complete, Adaxes will verify that all phone numbers specified for AD users correspond to the specified format.

? Waiting

Progress status: Checking...