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

Update-DSRole

Synopsis

Create a new role.

Syntax

__AllParameterSets

Update-DSRole -RoleId <guid> [-Name <string>] [-Description <string>] [-IsAdministrator <bool>]
 [-AllowDragAndDrop <bool>] [-CanAdd <bool>] [-CanEdit <bool>] [-CanDelete <bool>]
 [-CanImport <bool>] [-CanExport <bool>] [-DenyAddInRoot <bool>] [-OfflineMode <OfflineMode>]
 [-AsLegacyResponse] [<CommonParameters>]

Description

Create a new role and pre-validate offlineMode value, if supplied.

Examples

PS C:\> Update-DSRole -RoleId $roleID -IsAdministrator $false -AllowDragAndDrop $false -CanAdd $false -CanEdit $false -CanDelete $false -CanImport $false -CanExport $false -DenyAddInRoot $true -OfflineMode Disabled

Remove all rights (add, delete, edit, export, import, drag and drop, add in root), admistrator status and offline access of the role whose ID is $roleID.

Parameters

-AllowDragAndDrop

Allow the drag and drop option

-AsLegacyResponse

In versions prior to 2024.2, many DS cmdlets returned a ServerResponse object. Enabling this backward compatibility switch allows scripts developed for earlier versions to function correctly.

-CanAdd

Allow the user to add

-CanDelete

Allow the user to delete

-CanEdit

Allow the user to edit

-CanExport

Allow the user to export

-CanImport

Allow the user to import

-DenyAddInRoot

Prevent the user from adding entries in the root.

-Description

Role's description

-IsAdministrator

Give the administrative rights

-Name

Role's name

-OfflineMode

Offline access permissions. Disabled < Read Only < Read/Write

-RoleId

ID of the role to be updated.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Notes

For more information, type "Get-Help Update-DSRole -detailed". For technical information, type "Get-Help Update-DSRole -full".

Last updated

Was this helpful?