cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the logged in user in SAP WEB UI5 Application?

Former Member
0 Kudos

Hi Team,

I am developing a new SAP WEB UI5 application.

I want to fetch the current logged in user name i.e. something like "HttpContext.Current.User.Identity.Name.ToUpper()" in .Net.

I need above code equivalent in SAP UI . i am new to this technology.

Please help.

Thanks,

Ganesh

Accepted Solutions (0)

Answers (3)

Answers (3)

junwu
Active Contributor
0 Kudos

what's your runtime?abap, java......

Former Member
0 Kudos

We are developing in SAP UI5 in Web IDE by connecting to SAP Hana database.

is there a way to fetch windows login user in web UI5 code?

junwu
Active Contributor
0 Kudos

you are not answering.......

former_member187977
Participant
0 Kudos

hi,

Answer to your question is available on below page

Currently Logged in User SAPUI5

Thank you !

Silent Monk

former_member340030
Contributor
0 Kudos

Hi ,

If you are using the SAP IDS or Custom IDS for authentication than you can user details through usersapi service of HCP. Follow this blog for step by step method to get the logged in user details

https://blogs.sap.com/2015/04/16/using-the-hcp-user-api-in-web-ide/

thanks

Viplove