Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 22, 2017 at 09:08 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 22, 2017 at 10:23 AM

    hi,

    Answer to your question is available on below page

    Currently Logged in User SAPUI5

    Thank you !

    Silent Monk

    Add comment
    10|10000 characters needed characters exceeded

  • May 22, 2017 at 11:25 AM

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

    Add comment
    10|10000 characters needed characters exceeded