user_id function

Get a user from environment