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

Configure roles and authorizations for the OAuth user

Create a role in SAP and assign the required authorization objects to the OAuth system user to support OData service access and background job execution for integration with the Software Asset Management application.

Before you begin

The OAuth client must be configured in SAP before assigning roles to the OAuth user. See Configure an OAuth client in SAP.

SAP Role required: SAP Basis administrator

About this task

Use transaction code PFCG to create a role and assign the authorization objects that grant the OAuth user access to OData services, background job scheduling, and OAuth scope management.

Procedure

  1. Open transaction code PFCG in your SAP system.

  2. Enter a role name in the Role field and select Create Single Role.

    For example, OAUTH_ROLE.

  3. Add authorization object S_SERVICE and select the external service name TADIR Service in the Type field.

Image omitted: sap-oauth-service.png
Adding authorization object for external service and the type of service in SAP
  1. Add authorization object S_BTCH_ADM and select the N (No Administrator Authorization) option in the Activities field.
Image omitted: sap-role-auth-admin.png
Adding authorization object for administration and activities in the SAP
  1. Add authorization object S_BTCH_JOB, select RELE (Release Jobs) in the Activities field, and leave the JOBGROUP field empty.
Image omitted: sap-role-auth-batch.png
Adding authorization object for background jobs and activities in SAP
  1. Add authorization object S_SCOPE and enter * in the Activities field.
Image omitted: sap-config-oauth-scope.png
Adding authorization object for OAuth scope
  1. Add authorization object S_PROGNAM and the following values in the corresponding fields.

    • P_ACTIONBTCSUBMIT
    • P_PROGNAM/NOW/SAMP_USER_PROG_BCKJOB_RUN
Image omitted: sap-config-oauth-prognam.png
Adding authorization object for background jobs in SAP
  1. Save the role and assign it to the OAuth system user.

    For example, OAUTH_USER.

Result

The OAuth user has the required authorizations to access OData services, run background jobs, and manage OAuth scopes for the integration.

What to do next

Create an OAuth 2.0 SAP connection on your ServiceNow instance. For more information, see Establish an SAP connection using OAuth 2.0.