Get Surname from Claims

@PorreKaj good call on the -Designer got me further.

So now I have figured out how to get the name I am looking for using the command below

(ClaimsPrinciple.Identity.Claims | Where-Object {_.Type -eq ‘http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname’}).Value

and I can get it working in a Card by creating a new Element

New-UDElement -Tag ‘a’ -Endpoint {
(ClaimsPrinciple.Identity.Claims | Where-Object {_.Type -eq ‘http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname’}).Value
}

But how would I initialize this at login? I tried to set in the dashboard.ps1 in a scheduled endpoint but doesn’t work.

What I’m trying to accomplish is what is posted in the Show Off - Help Desk 2.0 - total rewrite

in the NavMenu you can see at the top where it says Hi, ArtisanByteCrafter! at the top. would like to get a Hi, GivenName .

@artvandelay440 - How did you accomplish this?

Thanks!