Set up OAuth authentication for a clone target

task australia Updated Sep 10, 2026 3 min read setup-clone-oauth.md
Raw file servicenow.com

Complete a one-time OAuth setup to register a target instance for cloning. This process generates a Client ID on the target instance and authorizes the connection from the source instance.

Before you begin

Both the source and target instances must be on Australia Patch 5 or later to use OAuth target authentication.

Roles required:

Instance Initial OAuth setup Subsequent clone operations
Source clone_admin, oauth_admin clone_admin, oauth_user
Target clone_admin, oauth_admin Not required

Note: The oauth_admin role is required on both instances only to complete the one-time OAuth provider creation. Users who submit clone operations after setup is complete need the oauth_user role on the source instance instead.

Procedure

  1. Navigate to All > Clone Admin Console > Clone Home.

  2. Navigate to Configuration > Clone instances.

  3. Select New.

  4. In the Target Instance field, enter the target instance URL and select Continue.

    The system runs a version compatibility check.

    If the target instance doesn't support OAuth, the system falls back to basic authentication. See Configure basic authentication fallback for clone targets for configuration steps.

  5. Select Setup OAuth on Target.

    The target instance opens in a new browser tab.

  6. On the OAuth setup page, select Set up OAuth.

    The page generates a Client ID.

    If the Client ID is not generated, the OAuth provider creation may have failed. This occurs when the user performing the setup does not have the oauth_admin role on the target instance. Without this role, the system can't create the OAuth provider record and returns an authorization error.

    To resolve this, verify that the user has the oauth_admin role on the target instance, then reload the OAuth setup page and select Set up OAuth again.

  7. Copy the Client ID.

  8. Return to the source instance browser tab.

  9. In the Client ID field on the Add Clone Target form, paste the Client ID.

  10. Select Add Target.

    The browser redirects to the target instance to complete authorization.

  11. Select Allow to grant consent.

    If your session has expired, log in to the target instance before granting consent.

    The browser redirects to the source instance.

    If the browser doesn't redirect to the source instance, return to the Clone Admin Console and select Reset OAuth or Retry to restart the authorization.

Result

The target instance is registered and authorized for clone requests.

What to do next

Configure basic authentication fallback for clone targets

Configure the target instance user for basic authentication when the target instance does not support OAuth authentication.

Before you begin

Role required: clone_admin

About this task

Basic authentication requires specific role and identity configuration on the target instance user record.

Procedure

  1. On the target instance, verify that the user has the clone_admin role and the soap role.

  2. On the user record, set identity_type to machine.

    Warning: The identity_type field may not appear on the User form by default. If it isn't visible, add it temporarily using Form Layout. Users with identity_type set to machine can no longer log in to the instance UI. This configuration supports Basic Auth for automated and integration traffic only.

Result

The target instance is configured for basic authentication. Clone operations can proceed using Basic Auth for automated and integration traffic.

Related topics

Troubleshooting for registering target instance

Search documentation
Search document titles and file paths on the australia branch