Check available OAuth scopes

Published by Tobias Hofmann on

1 min read

You can create an OAuth Scope for an OData service either by using a wizard or a report. Both don’t show you the already created scopes. If you have to assign a scope to a user, how can you find out the scope of the OData service? You can take a look at the technical name of the OData service and deduct the scope name from it. But if you also do not know the exact technical name of the service? Or how can you check which services already do have a scope assigned to it? You can use ADT for checking the created OAuth scope. See the SAP Developers tutorial on how to run queries on the DB.

Run ABAP Development Object from the menu (icon next to SAPGui).

Enter TADIR as search string.

ADT will search for ABAP Object that start with TADIR. This can take a while, wait for the search to finish.

Select the TADIR database entry and click OK. The data preview is shown.

Add a filter.

Filter value: OA2S
Filter for OBJECT = OA2S


Look in column OBJ_NAME for a value that starts with the OData service name.

This is the name of the OAuth scope.

Let the world know

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.


Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.