Loading...

Auto Discover User Accounts Using Regular Expressions

Regular expressions can be used to discover user accounts based on unique patterns of display names. For example, regular expressions can be used to discover all user accounts that contain a particular department name within its display name.

When user accounts are discovered using regular expressions, any user account that matches the wildcard expressions are automatically assigned to the associated user-defined subclient. If a user account does not match the expressions, it is automatically assigned to the default subclient.

The following table provides some examples of useful regular expressions:

Example Description
user* Auto-discovers any user account display name that begins with user followed by any number of any characters (for example, user abc , user 123, and so on).
user_group? Auto-discovers any user account display name that begins with user_group followed by any one character (for example, user_groupA, user_group1, and so on).
[JT]im Auto-discovers any user account display name that begins with J or T and ends with im (for example, Jim, Tim).
[a-k]Lee Auto-discovers any user account display name that begins with any character in the range of a through k inclusive and that ends with Lee (for example, aLee, bLee, and so on)
[A-K]* You can also use a combination of wildcards in a single expression, if the wildcards are supported for the type of operation you are performing. For example, if you wanted to auto-discover all user account display names beginning with any characters in the range of A through K inclusive followed by any number of any characters, you would enter the following wildcard combination.
[A-Z]*[ ][A-E][A-Z]* To skip the entire first name, find the first space and then discover users with last name beginning with the letters A through E.

Before You Begin

Enable auto discovery of user accounts for a user-defined subclient at the instance level, and then select the Match User Name by regular expressions option.

For steps to enable auto discovery, see Enabling Auto Discovery of User Accounts.

Procedure

  1. In the CommCell Browser, click Client Computers > client > Cloud Apps > instance.
  2. Right-click a user-defined subclient, and then click Properties.

    The Subclient Properties dialog box is displayed.

  3. Click the Auto-discovery tab.
  4. In the Add Display Name Matches below regular expressions box, type a regular expression or wildcard pattern to specify that newly discovered user account display names matching that pattern during auto-discovery will be assigned to this subclient.

    For a comprehensive wildcard list, see Wildcards.

  5. Click Add. Repeat this step to enter additional wildcard patterns.
  6. Click OK.

What to Do Next

Run a backup operation on this user-defined subclient to back up all the user accounts that match the given regular expressions you added in the above steps.