SAP Knowledge Base Article - Public

2739706 - Error message "The user does not have permission to access the requested resource." appears when creating Import Data Connection to OData Services from SAP S/4HANA in SAP Analytics Cloud (SAC)

Symptom

Error message "The user does not have permission to access the requested resource." appears when creating Import Data Connection to OData Services from SAP S/4HANA in SAP Analytics Cloud (SAC).

Environment

SAP Analytics Cloud

Reproducing the Issue

  1. Log on to SAC.
  2. Create an Import Data Connection using OData Services to On-Premise S/4HANA system.
    => Please ensure that all prerequisites have been completed.
  3. Choose Connect to an On-Premise OData service option.
  4. Enter Data Service URL as "https://<S/4HANA SERVER:PORT>".
  5. Provide the authentication details based on the Authentication Type you selected.
  6. Click OK button.
    => Error message "The user does not have permission to access the requested resource." appears.
    => You can also find the following error message from Network trace in Chrome Developer Tools.
    "Forbidden Access denied to resource /$metadata on system <S/4HANA SERVER:PORT>. In case this was a valid request, ensure to expose the resource correctly in your cloud connector."

Cause

The Import Data Connection to OData Services, it is required to create individual connections to all of the individual services exposed for CDS view in SAP S/4HANA.

Resolution

  • You can create an Import Data Connection to SAP S/4HANA which needs to enter URL as "https://<S/4HANA SERVER:PORT>" only.
  • This allows you to connect to services in the discovery service without having to create connections to all of the individual services.

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, EPM-ODS, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics, import, S/4HANA, S4HANA, S4, OData, services, URL,The user does not have permission to access the requested resource,S4HANA, S/4 HANA, Import Data Connection, OData Services , On-Premise S/4HANA,user does not have permission , KBA , LOD-ANA-AQU , Import Data Connections (Acquiring Data) , LOD-ANA-ADM , SAC Administration , Problem

Product

SAP Analytics Cloud 1.0