SAP Knowledge Base Article - Public

2805974 - Error 'You are not authorized to query the remote system. Please ask your administrator to grant you the InA role.' when creating live connection to S4/HANA Cloud in SAP Analytics Cloud (SAC)

Symptom

  • Error 'You are not authorized to query the remote system. Please ask your administrator to grant you the InA role.'
  • Error 'GET https://<xxx>.sapanalytics.cloud/s4hcremotes/test/sap/bw/ina/GetServerInfo 403 (Forbidden)' from Chrome Developer tool console.
  • Error 'invalid_grant, Provided authorization grant is invalid. Exception was There is no trust between entities  and <xxx>.sapanalytics.cloud in client <xxx>. For more information, consult the kernel traces or the OAuth 2.0 trouble shooting SAP note 1688545' from HTTP response.

Environment

  • SAP Analytics Cloud

Reproducing the Issue

  1. Configure 'Live Data Connection to SAP S/4HANA Cloud Edition via OAuth' according to SAC help guide.
  2. Error 'You are not authorized to query the remote system. Please ask your administrator to grant you the InA role.' popup after click OK button. 

Cause

Communication System, Communication Arrangement or Communication User in S/4 HANA is not created with correct information

Resolution

  • In some cases, if they are not created with all the correct information before they are saved for the first time, editing them does not reflect properly.
  • Sometimes the SAC URL shows like /tenant/axxax(x is a number), this axxax is not correct tenant ID. Please use Chrome Developer tools to check one of the Pusher requests in the Network Tab. At the end of the Request URL, it tells you what the tenant is.
  • Make sure OAuth 2.0 Identity Provider name in your Communication System is exactly copied from SAC connection provider name.

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, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics , KBA , LOD-ANA , SAP Analytics Cloud (SAC) , LOD-ANA-BI , Business Intelligence Functionality, Analytic Models , LOD-ANA-PL , Planning , LOD-ANA-BR , SAC Boardroom , LOD-ANA-PR , SAC Predicitive , Problem

Product

SAP Analytics Cloud 1.0 ; SAP S/4HANA Cloud 1905