How to retrieve the calling User in a custom function without passing it as a parameter ?

Certified Associate Developer

Hello, 

Could you please tell me how can i retrieve the caller of a custom function inside this function (in java) ?  I would like to check at least if he has the sysadmin rights.

Thanks in advance 

David 

  Discussion posts and replies are publicly visible