# Autodiscovering User Accounts for OneDrive for Business Using Azure Affinity Groups

You can use Azure affinity groups to autodiscover user accounts.

## Before You Begin

Enable autodiscovery of user accounts, and then select Azure AD groups. For more information, see Enabling Autodiscovery of User Accounts.

## Procedure

1. From the Command Center navigation pane, go to Protect > Microsoft 365.

   The Microsoft 365 Overview page appears.

2. On the Apps tab, click the OneDrive for Business app.

   The app page appears.

3. On the User groups tab, update an existing user group or create a user group:

   - To add Azure AD groups to an existing user group, right-click the user group, and then select Manage.

     The user group page appears.

   - To add Azure AD groups to a new user group, in the upper-right corner of the page, click Add user group.

     The Add user group page appears.

4. In the Content section, go to Add > Add group.

   The Add new content dialog box appears.

5. Select the Azure affinity groups that you want to use to autodiscover user accounts, and then click Add.

6. Click Save.

## What to Do Next

Run a backup operation on this user-defined user group to back up all the user accounts that belong to the Azure affinity groups that you selected.

×

Loading...