Per this doc, it seems you simply define the page with the variable URL as its URL and use the variable with traditional syntax. In your example, the URL would be /users/:email and you would access the variable in the code for that page with $Email.
$Pages = @()
$Pages += New-UDPage -Name 'Dashboard' -Url '/db/:id' -Content {
New-UDTypography -Text 'Dashboard for user: $id'
}New-UDApp -Title 'Pages' -Pages $Pages
and worked but on the invoke-udridirect didnt work,
is there a way to make it work with the template u provide?
With SAML2 authentication, the user’s email is passed as their identity (assuming you have upn or email as the primary identifying claim attribute), so using the following worked for me:
The question, I suppose, becomes how you want to define the $id parameter. The initial error is because you are creating a page at /users/:id, but no page at /users/. If you were to create a separate user page, you could then theoretically have a screen that would ask for user input for the user’s email to redirect them to.