on 2025 Sep 10 4:18 PM
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.
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?
Thanks in advance.
Regards
Sandy
Request clarification before answering.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.