$User outside of New-PSURole

Product: PowerShell Universal
Version: 2.4.1

Can I access $User from New-PSURole inside an New-PSUEndpoint Endpoint? How can I do this?

It’s not available in APIs at the moment. I’ve opened an issue for it here: Add $ClaimsPrincipal to API endpoints · Issue #676 · ironmansoftware/issues · GitHub