Skip to Content
0
Oct 28, 2019 at 05:35 AM

How to get details of logged in user in SAPUI5

732 Views

Not a FIORI launchpad application but just in a SAPUI5 application, how can we get the logged in user details ?

The below API provided by SAP is not helpful. Any other options? or Am I doing anything wrong with this API ?

This method MUST be called by the Unified Shell's container only, others MUST call 

sap.ushell.Container.getService("UserInfo"). 

Constructs a new instance of the user information service.

new sap.ushell.services.UserInfo()