Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 307 Bytes

File metadata and controls

13 lines (10 loc) · 307 Bytes
description
Protect sections based on roles.

Protect Section

The Protect-UDSection cmdlet hides it's content if a user does not have the specified roles.

Protect-UDSection -Role @("Administrator") -Content {
   New-UDTypography -Text 'Only Administrators see this'
}