cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Retrieve data from SAP datasphere using OData API (for system integration)

Sandyk
Explorer
0 Kudos
1,589

Hi,

I am trying to retrieve data from SAP datasphere using its OData API. My usecase is "I have an application ABC who wants to retrieve data from SAP data sphere views/models using OData API capability."

I am using postman for my POC/testing purpose. I have read through the below blog How to setup Postman for consuming SAP DATASPHERE ... - SAP Community and is successfully able to retrieve data by creating OAuth2 client for "Interactive Usage" purpose. But my issue with this approach is this token is able to access data from any OData API from any space. I want to restrict access to specific space only.

So I thought may be I should use "Technical User" while creating OAUth client. I have also created a scoped role, given access to required space and added this role to oauth client while creating it.

Sandyk_0-1757516589511.png

Sandyk_1-1757516692366.png

In postman, I used grant type as client credentials, used oauth2SAML token url of datasphere in !Access Token URL" below,  entered ID & secret and generated a toke, it was successful. But using this token as well I am able to retrieve data from any space. Looks like the scoped role didn't work. 

Can you please help me where I have gone wrong? is it even right way to do it when an application wants to integrate with DSP?

Sandyk_2-1757516799554.png

SAP Datasphere OData 

@Matthew_Shaw 

@Ian_Henry  @RichT @shubham521 

 

Thanks in advance.

Regards

Sandy

 

Accepted Solutions (0)

Answers (0)