Reputation: 1
While trying to consume the odata service from s/4 cloud system using oAuth I get the following error: "DestinationAccessException: Failed to get authentication headers. Destination service returned error: Requested OAuth 2.0 scope exceeds the scope granted by the resource owner or OAuth 2.0 client" The odata service is oAuth enabled"
The oAuth scope of the service is specified in the destination confiured on cf as well. Please let me know if any further details are required.
Upvotes: 0
Views: 240
Reputation: 1693
This error is actually not caused by the SAP Cloud SDK itself, but rather by a wrong/lacking configuration on the SAP S/4HANA side.
The error message Requested OAuth 2.0 scope exceeds the scope granted by the resource owner or OAuth 2.0 client
indicates that the business user lacks the authorization object S_SCOPE for the requested OData API.
I recommend to consult the SECTRACE kernel trace to obtain more concrete information.
Upvotes: 1