cancel
Showing results for 
Search instead for 
Did you mean: 

how to check if the logged in user has "ROLE ADMIN" and other system privilages in sap XSA

0 Kudos
286

I am trying to check if the user has the role to create a new user in sap hana local user store using the below function $.session.hasSystemPrivilege('ROLE ADMIN'). But in the session I am only getting the platform information of the user and not the roles that I added in hana. Please help me understand it.

When I checked the SAP migration document from classic to xsa , it says

  • $.session.hasSystemPrivilege and $.session.assertSystemPrivilege: These APIs are not supported in XS advanced and code needs to be changed.

But they haven not mentioned what has to be done for it in xsa.

Thanks in advance!

Accepted Solutions (0)

Answers (0)