Symptom
Failed to create live connection to S/4HANA Cloud system in SAP Analytics Cloud (SAC) due to error:
- You are not authorized to query the remote system. Please ask your administrator to grant you the InA role.
Environment
- SAP Analytics Cloud
- SAP S/4HANA Cloud
Reproducing the Issue
- Logon to SAC and create a new live S4HANA Cloud connection following guide: Live Data Connection to SAP S/4HANA Cloud Edition via OAuth;
- Attempt to save the connection and the error above occurs;
- Capture HAR log and the following error is displayed:
"invalid_grant,
Provided authorization grant is invalid.Exception was There is no trust between entities and [Your SAC URL] in client XXX.For more information,
consult the kernel traces or the OAuth 2.0 trouble shooting SAP note 1688545".
Cause
- The OAuth 2.0 SAML Issuer is not configured correctly in the Communication System of the SAP S/4HANA Cloud system:
- It is typically populated automatically when the SAC signing certificate is uploaded. If this field contains an incorrect value or is not maintained properly, authentication errors may occur.
Resolution
- Logon to S4HANA system and open the communication system created for SAC usage.
- Navigate to General > Identity Provider > OAuth 2.0 Identity Provider > confirm it's enabled.
- Confirm User ID mapping mode is set to User Name
- Change value of OAuth 2.0 SAML Issuer to the SAC tenant URL without https://
- Also, check if all pre-requisites are configured properly according to the KBA 3428297 - Live Connection between SAC and S/4HANA Cloud - Prerequisites
See Also
- KBA 3428297 - Live Connection between SAC and S/4HANA Cloud - Prerequisites
- KBA 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- KBA 2487011 - What information do I need to provide when opening a case for SAP Analytics Cloud?
- KBA 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- KBA SAP Analytics Cloud Connection Guide
- KBA SAP Analytics Cloud Get More Help and SAP Support
- Need More Help? Contact Support
Keywords
SAP Analytics Cloud, help, knowledge, model, modeling, connection, tenant, live connection, s/4hana, s4, hana, cloud, ina role, prerequisite, saml, custom saml user mapping, username, login name, s/4hana cloud, connection, OAuth, issuer, communication, system
, KBA , LOD-ANA-LDC-HAN , SAC Live Data Connection HANA , Problem
Product
SAP Analytics Cloud all versions
SAP Knowledge Base Article - Public