Symptom
The following error occurs in SAP Analytics Cloud (SAC):
- Unable to authenticate. Please ensure your credentials are valid.
- Cannot return OAuth 2.0 SAML Bearer Assertion because could not retrieve OAuth 2.0 access token
Environment
-
SAP Analytics Cloud
Reproducing the Issue
- Follow the steps from SAC help guide and on section "Live Data Connection to SAP S/4HANA Cloud Edition via OAuth" and SAP Marketing Cloud Help Guide on Section "Integration with SAP Analytics Cloud (1SO)" and create connection.
- When clicking on the OK button in the connection creation page, error "Unable to authenticate. Please ensure your credentials are valid." is seen.
- Error "Cannot return OAuth 2.0 SAML Bearer Assertion because could not retrieve OAuth 2.0 access token" can be captured from HTTP traffic
Resolution
- Ensure the NameID used by the identity provider (IDP) is valid.
- Open the network tab in Chrome Dev Tools. Make sure "Preserve log" is selected.
- Go to the SAP Analytics Cloud logon page. Clear the network requests and then have the user logon to SAC.
- In the second or third Chrome Dev Tools network request, find the SAML response header under Form Data and decode it in an online decoder.
- Find the NameID in the decoded SAML Response.
- Make sure that the NameID is NOT an e-mail address. S/4HANA will not be able to recognize an e-mail as the NameID.
- If it is an e-mail, change the NameID in their IDP to either Login Name or User ID.1.
- Check that the SAC SAML User Mapping matches the NameID.
- Go to Security -> Users in SAC.
- Check that the SAML User Mapping Column (case-sensitive) matches up with the NameID from the SAML Response in Step 1 d.
- Check that there is a Business User in the SAP S/4HANA or SAP Marketing Cloud system with a matching Username.
- In the SAP S/4HANA or SAP Marketing Cloud system, there must be a business user with a username that (no case-sensitive) matches the NameID and the SAML User Mapping.
- Either edit an existing user's username or create a new business user and assign the NameID to the new business user's username.
- After all of these steps are performed, a connection should be successfully created. If not, ask the user to recreate their Communication Arrangement, Communication System and Communication User and try again.
See Also
- 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- Have a question? Ask it here and let our amazing SAP community help! Or reply and share your knowledge!
- 2487011 - What information do I need to provide when opening an case for SAP Analytics Cloud?
- SAP Analytics Cloud > Learning > Guided Playlists
- SAP Analytics Cloud > Learning > Guided Playlists > Getting Support
- Need More Help? Contact Support or visit the solution finder today!
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-LDC , SAC Live Data Connection , How To
Product
SAP Analytics Cloud 1.0