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 {}
1 Like
#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

#7

Hey,

did someone figured out a solution to this? Because I stumbled exactly over the same problem.

Cheers

#8

It was a bug and is slated to be fixed in 2.4

#9

thanks for the quick response! really appreciated!

#10

just tried it in the new beta version 2.4 and its working. :+1:

1 Like