Identifying user behind cloudflare

My devops have put my webapp behind a cloudflare zero trust sign on for our company’s users.

Is there any way I can extract the username from the headers?


Are you able to share the purpose for that?

There are other ways to get the identity of those the logged in.

Oh cool.

My webapp shows our company data under different urls for each project.

Our users can leave comments but since I don’t know who the users are, the comments have no user fields.

Any method to get the user id would be greatly appreciated.