cancel
Showing results for 
Search instead for 
Did you mean: 

HANA XS APLICATION with ANGULARJS -> How to get current user wihout SAPUI5 library?

former_member280546
Participant
0 Kudos

I am currently developing a HANA XS application but I don't know how to get the current logged user. Is there any way to get this info without using any SAP Library?

Accepted Solutions (1)

Accepted Solutions (1)

former_member280546
Participant

Thanks for the answer!

The problem is solved. I am actually using the user API for this purpose.

Accessing the User API

https://help.hana.ondemand.com/help/frameset.htm?1de599bf722446849d2b2e10132df42a.html

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Kudos

I think you are talking about XS Classic, right? In that case you can define an XSJS service which uses $.session.getUsername() to get the XS session user. That XSJS service can be called with the Angular.js service $http for instance.

Regards,
Florian