Use the Azure AD Configuration > Modify (Tenant details) window of the Active Roles Configuration Center to enable OneDrive storage for the cloud-only and hybrid users of your selected Azure tenant.

Prerequisites

Before beginning the configuration, make sure that the selected Azure tenant meets the requirements listed in Prerequisites of enabling OneDrive in an Azure tenant.

To enable OneDrive storage for Azure users in an Azure tenant

  1. In the Active Roles Configuration Center, click Azure AD Configuration.

  2. Select the Azure tenant for which you want to enable OneDrive storage, and click Modify. The Tenant details window appears.

    Figure 8: Active Roles Configuration Center > Azure AD Configuration > Modify

  3. To start the configuration of the OneDrive storage, select Enable OneDrive.

  4. To register Active Roles as a SharePoint App-Only for OneDrive authentication, open the SharePoint App-Only configuration site of your Azure tenant in your web browser:

    <azure-tenant-name>.sharepoint.com/_layouts/15/appregnew.aspx

    TIP: To quickly open the SharePoint App-Only configuration site from the Tenant details window, expand the procedure overview above Enable OneDrive to access a clickable link.

  5. On the SharePoint App-Only configuration site, configure the following settings:

    • Client ID: Generate a new client ID.

    • Client Secret: Generate a new client secret.

    • Title: Provide a name for the configuration (for example, Active Roles SharePoint app).

    • App Domain: Specify a custom application domain for the configuration.

      NOTE: Make sure that the specified App Domain is not a reserved domain (such as the domain of your Azure tenant), otherwise the SharePoint App-Only cannot be created. One Identity recommends specifying https://www.localhost.com as App Domain.

    • Redirect URI: Specify a custom redirect URI for the configuration (such as https://localhost).

  6. To apply your changes and create the SharePoint App-Only, click Create. Upon successful configuration, the SharePoint App-Only configuration site displays the configured settings with the following message:

    The app identifier has been successfully created.
  7. Copy the Client ID and Client Secret values to your clipboard or elsewhere, as they will be required for the next step.

  8. Grant the required permissions for the configured SharePoint App-Only. To do so, open the application invitation page of the SharePoint administration site of your Azure tenant in your web browser with a Global Administrator user:

    <azure-tenant-name>-admin.sharepoint.com/_layouts/15/appinv.aspx

    TIP: To quickly open the SharePoint administration site from the Tenant details window, expand the procedure overview above Enable OneDrive to access a clickable link.

  9. On the SharePoint administration site, configure the following settings:

    • App ID: Paste the client ID generated on the SharePoint App-Only configuration site here.

      TIP: To quickly fill the Title, App Domain and Redirect URL fields, click Lookup after pasting the client ID into the App ID field.

    • Title: Provide the name that you specified for the configuration on the SharePoint App-Only configuration site.

    • App Domain: Specify the custom application domain that you specified on the SharePoint App-Only configuration site.

    • Redirect URL: Specify the custom redirect URI that you specified on the SharePoint App-Only configuration site.

    • Permission Request XML: Paste the following XML code into the text box:

      <AppPermissionRequests AllowAppOnlyPolicy="true">
        <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
        <AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="FullControl" />
      </AppPermissionRequests>
  10. To apply your changes and grant the application permissions, click Create.

  11. In the Tenant details window of the Active Roles Configuration Center, configure the following settings:

    • SharePoint Application (Client) ID: Paste the client ID generated on the SharePoint App-Only configuration site.

    • SharePoint Client Secret: Paste the client secret generated on the SharePoint App-Only configuration site.

    • OneDrive admin site URL: Specify the URL of the SharePoint administration site of your Azure tenant. The URL has the following syntax: <azure-tenant-name>-admin.sharepoint.com

    • OneDrive storage default size (in GB): Specify the default OneDrive storage size allocated for each Azure user in the Azure tenant. This field accepts only an integer and its value must be within the range of the storage size allowed by the OneDrive subscription in use within your organization.

      NOTE: The OneDrive admin site URL and OneDrive storage default size (in GB) settings of the Tenant details window are applicable to cloud-only Azure users only, and do not affect OneDrive provisioning for hybrid users in your Azure tenant. To configure the OneDrive admin site URL and the default OneDrive storage size for hybrid users, you must set these settings in the Active Roles Console (also known as the MMC Interface) by configuring an O365 and Azure Tenant Selection policy for your Azure tenant, after configuring OneDrive in the Active Roles Configuration Center. For more information, see Configuring an O365 and Azure Tenant Selection policy.

  12. To check the SharePoint authentication configuration, click Test credentials.

    TIP: If the test fails for any reason, Active Roles indicates it with an error message. Typically, testing can fail for the following reasons:

    • The specified client ID and/or client secret is incorrect. To resolve the problem, double-check that they were copied correctly from the SharePoint App-Only configuration site.

    • The required application permissions were not granted in the SharePoint administration site of your Azure tenant. To resolve the problem, open the application invitation page of the SharePoint administration site of your Azure tenant, and copy the permission request XML code indicated in this procedure.

    • The Azure tenant is not consented. To resolve the problem, make sure that the Azure tenant is consented. For more information, see Configuring a new Azure tenant and consenting Active Roles as an Azure application.

    • If the Azure tenant for which you configure OneDrive has already been used in Active Roles versions earlier than 7.5, then the Azure tenant may not have the Sites.FullControl.All SharePoint permission granted. To resolve the problem, verify that the Sites.FullControl.All permission is granted for the Azure tenant. For more information, see Checking and adding the Sites.FullControl.All permission for Active Roles.

    • The specified OneDrive admin URL is incorrect. To resolve the problem, double-check that the specified admin URL is correct and belongs to the Azure tenant for which OneDrive is configured.

    • The specified OneDrive storage default size is incorrect (that is, the field is left empty, does not contain a numeric value, or the specified value is outside the storage size range available by the Microsoft 365 plan of your organization). To resolve the problem, specify a valid storage size.

    • A problem occurred in your internet connection. To resolve the problem, check your internet connection and try again.

  13. Once testing completed successfully, to apply your settings, click Save.

    NOTE: You can save the OneDrive configuration only if the test completes successfully.

  14. (Optional) If you want to provision OneDrive storage for hybrid Azure users as well in your Azure tenant, then set up a new O365 and Azure Tenant Selection policy in the Active Roles Console (also known as the MMC Interface). For more information, see Configuring an O365 and Azure Tenant Selection policy.

NOTE: When creating a new hybrid or cloud-only Azure user in the Active Roles Web Interface after completing this procedure, make sure that you grant them the SharePoint Online license in the Licenses step. Otherwise, the configured OneDrive storage cannot be provisioned for the new Azure user. For more information, see Creating a new cloud-only Azure user.