cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get details of the users who are logged in SAPUI5 FIORI application in BAS CF

CristianR
Explorer
0 Kudos
2,179

Hello Experts;

We are migrating some SAPUI5 FIORI apps from WebIDE NEO to CF BAS. One of the functionalities is to get details of the logged user. For that, we have tried with the User API Service for CF:

https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/b80abb01ef084bc098636348b1d618af....

We Implemented this API following the following post:

https://blogs.sap.com/2021/08/02/getting-user-information-in-btp-launchpad/

But the API call fails with error code 404 and message "Cannot GET /user-api/currentUser"error-404.png

Could anyone provide some guidance on what the problem could be?

This issue occurs testing from BAS and also from the deployed App on Launchpad Service. We are using managed router.

Thanks in advance for the help and best regards.

Cristian R.

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
SAP Mentor
SAP Mentor
0 Kudos

I would think this question: Calling Service using AJAX in Fiori Elements Extension doesn't work in Launchpad and it's answers will help you.

CristianR
Explorer
0 Kudos

Hi Gregor,

I will check the post and try the solution, thx for sharing.

Regards.

Cristian R.

gowrishankar8
Discoverer
0 Kudos
Hi @CristianR, i am facing the same issue. May i check how did you resolve this? Thanks.