• I see. I can use xp_logininfo to get to the login used for the session, thanks!

    Do you know how bad is the performance? Original implementation was retrieving this info from the sys.login_token but we had to drop it due to the terrible performance.