IIS - variable for the user currently using the dashboard


#1

Hello,

quick question. my dashboard (licensed) is running on an IIS. everthing works fine. but when I use env:username in my scripts the server account shows up instead of the user using the dashboard. is there a solution to this?

thanks in advance


#2

$User will return the user accessing dashboard if you are using Authentication


#3

Using Windows Authentication and I already tried $User. Variable seems to be empty. I will debug it tomorrow.

Or do you mean something like this:

$Authentication = New-UDAuthenticationMethod -Windows


#4

ok, it’s working. the combination of New-UDLoginPage and New-UDAuthenticatoinMethod was the key and using $User or $ClaimPrinciple.Identity.Name in the -Endpoint section