For the complete documentation index, see llms.txt. This page is also available as Markdown.

Protect-UDSection

Hides a section of a dashboard if the user is not part of the specified role.

Synopsis

Hides a section of a dashboard if the user is not part of the specified role.

Syntax

Protect-UDSection [-Children] <ScriptBlock> [-Role] <String[]> [<CommonParameters>]

Description

Hides a section of a dashboard if the user is not part of the specified role.

Parameters

-Children

The content to hide.

Required?                    true
Position?                    1
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Role <String[]>

The role the user must be a part of.

Outputs

-------------------------- EXAMPLE 1 --------------------------

Last updated

Was this helpful?