Are you using dash-auth? If so, see Get username for authenticated user with Dash Basic Auth
dash-auth