Windows Claims - Multiple Policies per page?


#1

Title pretty much says it all, can you have more then 1 authorization policy per page?


#2

Yes. The -Authorization parameter of New-UDPage takes an array of strings.

Thanks,
Tim Curwick


#3

Would that just be {“Policy1”, “Policy2”}

?

Thank you!


#4

Yes.

New-UDPage -Name 'Admin' -AuthorizationPolicy 'ExchAdmin', 'O365Admin' -Content {}

#5

So, i am finally getting around to trying to add this and i am not having any luck getting this implemented.

Here is what i have tried:

New-UDPage -Name "Accounts Page" -AuthorizationPolicy @("UserPolicy", "ITPolicy") -Icon "users" -Content {}
New-UDPage -Name "Accounts Page" -AuthorizationPolicy "UserPolicy", "ITPolicy" -Icon "users" -Content {}
New-UDPage -Name "Accounts Page" -AuthorizationPolicy 'UserPolicy', 'ITPolicy' -Icon "users" -Content {}

None of these have worked for the second policy listed. In all 3, the UserPolicy processed but not ITPolicy.

The ITPolicy functions properly if on a different page where it is the only one listed.

Thank you!


#6

I have not actually tried it myself. My response was based on the embedded Help for the command. So it should work…

For now, I would create a separate, single AccountsPolicy, that combines the checks of the other two policies.

Thanks,
Tim Curwick