4 weeks ago - last edited 4 weeks ago
Hi everyone,
I am testing or calm API instance service on postman, but I sadly get a 403 after successfully fetching the correct access_token
.
When creating the service, I have also added the correct scopes like described here: https://help.sap.com/docs/cloud-alm/apis/managing-scopes
What I do in postman:
I would really appreciate your help, thank you.
Request clarification before answering.
Hi friscas,
If your authentication response JSON is missing Scope data, it usually means one of two things:
I suspect that you have taken the latter path, and updated the child Service Key/Binding instead of the parent SAP Cloud ALM API Instance. You mentioned that you added the correct scopes already as per the Managing Scopes guide. That guide also states that the scopes must be added to the Service Instance.
Please try updating the SAP Cloud ALM API Service Instance (and not the child Service Key/Binding) in the SAP Cloud ALM API with the correct scopes. Once you have done that, re-test if the authentication response JSON contains the expected Scope values. If they are contained in the JSON, then you can try continuing with the API tests via Postman.
Thanks and regards,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey John,
thank you again for the fast response, and no, I did not add the scopes to the Service Key but directly to the service during creation in the second step.
Here is what i did:
thx
Hi Friscas,
Are you running a "POST" or a "GET" request using the projects API (https://{region}.alm.cloud.sap/api/calm-projects/v1/projects)?
If you are using a "POST" request, are you providing the necessary JSON body with the details of the new project? If I run a "POST" request but don't provide JSON body with the details of my new project, I get the same 403 error message.
Thanks and regards,
John
Hi Friscas,
You should be able to query that API based on the scopes assigned. Have you tried to use the other SAP Cloud ALM APIs? For example, I see that the scopes include the landscape permissions (calm-api.landscape.read). What happens if you try to run the "GET" method on the "/landscapeObjects" endpoint for the Landscape API?
Thanks and regards,
John
User | Count |
---|---|
87 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.