Online Help > PowerShell Scripting

Set-RDMRoleGroupRights

SYNOPSIS

Assign/set role permissions.

 

SYNTAX

Set-RDMRoleGroupRights -Add [Add] <Nullable`1> -Delete [Delete] <Nullable`1> -Edit [Edit] <Nullable`1> -Role [Role] <PSRoleInfo> -SecurityGroup [SecurityGroup] <PSSecurityGroupInfo> -View [View] <Nullable`1> [<CommonParameters>]

 

DESCRIPTION

Assign/set role permissions.

 

PARAMETERS

  -Add <Boolean>

Allows the role to add entries in groups/folders for that security group.

 

  -Delete <Boolean>

Allows the role to Delete the entries for that security group.

 

  -Edit <Boolean>

Allows the role to Edit the entries for that security group.

 

  -Role <PSRoleInfo>

(Required) role object, must be retrieved from Get-RDMRole or created via New-RDMRole.

 

  -SecurityGroup <PSSecurityGroupInfo>

(Required) Security group object, must be retrieved from Get-RDMSecurityGroup or created via New-RDMSecurityGroup.

 

  -View <Boolean>

Allows the role to View AND USE the entries for that security group.

 

  <CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer and OutVariable.For more information, type, "get-help about_commonparameters".

 

NOTES

For more information, type "Get-Help Set-RDMRoleGroupRights -detailed". For technical information, type "Get-Help Set-RDMRoleGroupRights -full".

 

EXAMPLE 1

PS C:\> $roles = Get-RDMRole; $groups = Get-RDMSecurityGroup; Set-RDMRoleGroupRights -role $roless[1] -SecurityGroup $groups[0] -Add $true -Delete $true

 

Retrieves the list of available roles and groups. Set permission add and delete to the second role of the list on the first group of the list

 

RELATED LINKS

Get-RDMRole

New-RDMRole

New-RDMRole

Remove-RDMRole