Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3167

Checking logged in user's ID and Application Role in Procedure

$
0
0

This is a follow up from a previous question asked here: Limiting table Insert/Update access via procedures only

 

Now we have HANA procedures which are using DEFINER rights. Within this procedure however, we might need to make conditional logic depending on the application privilege assigned to the user who invoked the procedure.

 

In XSJS, there is a way to check the application privilege of the invoking user using $.session.(has|assert)AppPrivilege(). In the case of a procedure, especially one invoked via DEFINER rights, how would I figure out which application privilege has been provided to the invoking user? Assuming there are some runtime session tables, I would still need to be careful not to end up picking the information of the _SYS_REPO user who the procedure would be running as.

 

thanks,

Nitin


Viewing all articles
Browse latest Browse all 3167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>