cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori - get current logged in user

vijai_mohan2
Explorer
0 Kudos

Hi,

In SAP Fiori, how do I get the id of the user who is currently logged in? is there a service or API that is readily available to get the information? Can anyone mention how to get the current logged in user.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member182329
Participant
0 Kudos

Hi Vijai,

            You can refer this link for your question. https://scn.sap.com/thread/3538527

Regards,

Bince

former_member182874
Active Contributor
0 Kudos

A Shortcut to your query will be :

Open your app in google chrome, Right click and turn on Inspect element :

Click on Login details as below :

You will get login information : With which user you are logged in in the popup.

Now if you want to customize and know from where these details are coming then turn on Inspect element(shortcut - F12)  and go to network tab and again click on Login details, you will get the source like below :

Hope this is what you want.

Regards,

Tejas

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Vijay,

Could you share business requirements behind this question?

Regards,

Masa

SAP Customer Experience Group - CEG

vijai_mohan2
Explorer
0 Kudos

Hi,

I'm customizing the Fiori application Approve PO. Here I need to pop up a message with the id of the currently logged in user as a parameter. Do you know of a way yo get the login data?

Former Member
0 Kudos

Login information can be passed via OData service call from the gateway layer.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Vijai,

You can look at the code for launchpad. Launchpad has login details info.

Please install the latest UI add-on which has UI extension points.

Please use new SAP Fiori Launchpad

Extensibility

Regards,

Masa

SAP Customer Experience Group - CEG

former_member189237
Participant
0 Kudos

We need date & time for previous successful login

Former Member
0 Kudos

On the UI side, I believe there is no way. There is no control on the login page.

The logged in information is available at gateway layer and can be passed to UI if required.