effective_user function

Get the effective user