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

Register Microsoft OneDrive as an OAuth provider for Document Services

Use the information generated during Microsoft OneDrive account configuration to register Microsoft OneDrive as an OAuth provider and allow the instance to request OAuth 2.0 tokens.

Before you begin

Role required: admin

Procedure

  1. Navigate to All > System OAuth > Application Registry.

  2. Select New.

  3. On the screen titled What kind of OAuth application, select Connect to a third-party OAuth Provider.

  4. On the form, fill in the fields.

FieldValue required
NameName to uniquely identify the record.
Client IDApplication ID of the OneDrive application you created in Microsoft Azure.
Client SecretThe Client Secret you generated when you created the application in Microsoft Azure.
Default Grant typeThis value should be Authorization Code.
Authorization URL`https://login.microsoftonline.com/common/oauth2/v2.0/authorize` Note that you have to unlock this field and then lock it again.
Token URL`https://login.microsoftonline.com/common/oauth2/v2.0/token` Note that you have to unlock this field and then lock it again.
Redirect URL`https://.service-now.com/oauth_redirect.do` Note that you have to unlock this field and then lock it again.
  1. Right-click in the form header and select Save.

    An OAuth Entity Profile record is created.

  2. In the OAuth Entity Scopes related list, add scopes to match the permissions you defined when you configured the Microsoft OneDrive application.

    1. Select Insert a new row.

    2. Enter the name and the OAuth scope of the permission, which for these Document Services scopes are the same for both values.

      • Files.Read
      • Files.Read.All
      • offline_access
      • Files.ReadWrite
      • Files.ReadWrite.All
      • Right-click in the form header and select Save.
  3. Select Update.

Result

The system validates the OAuth credentials.

Parent Topic:Microsoft OneDrive integration with Document Services

sndocs is an independent community mirror and is not affiliated with or endorsed by ServiceNow.

ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are associated.

© 2026 ServiceNow, Inc. All rights reserved.

Documentation content is redistributed under the Apache License 2.0 from the ServiceNowDocs repository.