Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Setup Microsoft OneDrive for Document Services

Integrate the ServiceNow instance and Microsoft OneDrive for Document Services by creating a custom OAuth application in Document Services to authenticate ServiceNow requests.

Before you begin

Microsoft OneDrive requirements:

  • Microsoft OneDrive account
  • Microsoft Azure account
  • Microsoft OneDrive tenant administrator credentials

Role required: admin

About this task

Complete these steps from your Azure Developer account. See the Azure product documentation for instructions on creating and configuring custom applications.

Procedure

  1. Log in to the Microsoft Azure registration portal with your organization credentials.

    For more information, see the Microsoft documentation on the Microsoft Azure App registration portal.

  2. Register a new custom application.

    1. Provide the application name and the supported account type.

    2. Select Register.

    3. Enter the redirect URL in the following format: https://<instance>.service-now.com/oauth_redirect.do.

    An overview of the application's basic information is Displayed.

  3. Copy the application ID to a text file.

    You will use this ID and the client secret generated in the next step to register the app as a third-party OAuth provider on your ServiceNow instance. The application ID is the client ID when you connect the application to your ServiceNow instance.

  4. Add a client secret.

    1. In Microsoft Azure, navigate to Manage > Certificates & secrets.

    2. Provide a description and an expiration date.

    3. Select Add.

  5. Enable the permissions you want the application to support.

    For more information, see the Microsoft Graph permissions reference documentation.

    1. In Microsoft Azure, navigate to Manage > API permissions.

    2. Click the Microsoft Graph tile.

    3. Select the delegated or application permissions that the application supports.

      Delegated permissions enable the application to access the API as a signed-in user.

      Application permissions enable the application to run as a background service or daemon without a signed-in user.

      You must mention these API permissions in the OAuth Entity scopes tab while configuring the application registry.

    4. Ensure that required API permissions are provided for your custom app.

      NameOAuth scope
      Files.ReadFiles.Read
      Files.Read.AllFiles.Read.All
      offline_accessoffline_access
      Files.ReadWriteFiles.ReadWrite
      Files.ReadWrite.AllFiles.ReadWrite.All
      AuditLog.Read.AllAuditLog.Read.All
      Directory.AccessAsUser.AllDirectory.AccessAsUser.All
      Directory.Read.AllDirectory.Read.All
      User.ReadUser.Read
    5. Select Add permissions.

What to do next

Register Microsoft OneDrive as an OAuth provider for Document Services

Parent Topic:Microsoft OneDrive integration with Document Services