Is there anyway to get logged on user?

I was thinking of creating a page to allow users to update their personal information but I don’t think there is a way to pass the logged on user as the browser would be contained.
Before I gave up I wanted to ask if I was missing something or someone knew a trick that may work.

Hey @GarySmithPS If you are using enterprise version and OAuth you might be able to utilze the OAuth ClaimsPrinciple:

https://docs.universaldashboard.io/how-to/get-the-user-email-address-when-using-oauth

1 Like

ClaimsPrincipal is available for any login type: https://docs.universaldashboard.io/endpoints/variables-defined-in-endpoints

You can use $User to just get the user name, too.

1 Like

I use $ClaimsPrincipal.Identity.Name in my AzureAD dashboard.

For some reason $User doesn’t work for me, but it’s not a big deal.