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:




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).


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).


Auto-discovers any user account display name that begins with J or T and ends with im (for example, Jim, Tim).


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)


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, you can auto-discover all user accounts that display names beginning with any characters in the range of A through K inclusive followed by any number of any characters.

[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, and then select the Match user name by regular expressions option.

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


  1. In the Apps page, click an app.

    The App page appears.

  2. In the Subclients section, click a user-defined subclient.

    The user-defined_subclient page appears.

  3. In the Content section, click Manage.

    The Subclient content dialog box appears.

  4. Click Add rule.

    The Add rule dialog box appears.

  5. In the Regular Expression box, type a regular expression or wildcard pattern that you want to add, and click Add. During an auto discovery, the newly discovered user account display names matching that pattern will be assigned to this subclient.

    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.

Last modified: 3/1/2018 7:47:52 PM