Check available OAuth scopes
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.
Type: OBJECT Filter value: OA2S Filter for OBJECT = OA2S
Result
Look in column OBJ_NAME for a value that starts with the OData service name.
This is the name of the OAuth scope.
ZDEMO_CDS_SALESORDERITEM_CDS_0001
0 Comments