Loading...

Auto-Discovering User Accounts Using Regular Expressions or Wildcards

You can use regular expressions or wildcards to auto-discover user accounts by display name. For example, you can use regular expressions to discover all user accounts that contain "sales" in their display names. The regular expressions that you use here are case sensitive.

When you use regular expressions or wildcards to auto-discover user accounts, user accounts that match the regular expressions or the wildcard pattern are automatically assigned to the user-defined subclient for which you enter the regular expressions or wildcards. If a user account does not match the expressions, then it is automatically assigned to the default subclient.

Regular expression

What the regular expression matches

Examples of display names that match the regular expression

sales

Display names that begin with "sales" followed by any number of any characters

salesA

salesOffice

[JT]im

Display names that begin with "J" or "T" and end with "im"

Jim

Tim

[a-k]Lee

Display names that begin with any character in the range of "a" through "k" inclusive and that end with "Lee"

aLee

bLee

[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 Match user name by regular expressions.

For more information, see Enabling Auto-Discovery of User Accounts.

Procedure

  1. From the navigation pane, click Solutions > Apps > Cloud Apps.
  2. On the Apps page, click the OneDrive for Business app.

    The app page appears.

  3. In the Subclients section, click the user-defined subclient that you want to auto-discover user accounts for.

    The user-defined subclient page appears.

  4. In the Content section, click Manage.

    The Subclient content dialog box appears.

  5. Click Add rule.

    The Add rule dialog box appears.

  6. In the Regular Expression box, type a regular expression or wildcard pattern, and then click Add.

    subclientWhen an auto-discovery operation runs, clients that have display names that match the regular expressions or the wildcard pattern that you enter are added to this user-defined subclient.

    You can enter multiple regular expressions or wildcard patterns.

  7. Click OK.

What to Do Next

Run a backup operation on this user-defined subclient to back up all the user accounts that have display names that match the regular expressions or the wildcard patterns that you entered.

Last modified: 9/6/2018 6:25:53 AM