on 2019 Oct 28 5:35 AM
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()
Hi Venkata,
If you are not launching the application in any of the portal you can use the below link to get the user id currently logged in
https://blogs.sap.com/2015/04/16/using-the-hcp-user-api-in-web-ide/
Thanks,
Drushya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkata Sunil Naidu Chennam,
if not in launchpad, then check the below blog:
https://blogs.sap.com/2015/04/06/how-to-get-username-and-other-login-info-in-sap-ui5-application/
I would prefer to have an entityset which returns my user details in case if I want some additional details, which the above service in the link might not provide.
BR,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.