Online Help > PowerShell Scripting

Add-RDMRoleToUser

SYNOPSIS

Add role to an user

 

SYNTAX

Add-RDMRoleToUser -RoleName [RoleName] <String> -RoleObject [RoleObject] <PSRoleInfo> -UserName [UserName] <String> -UserObject [UserObject] <PSUserInfo> [<CommonParameters>]

 

DESCRIPTION

Add role to an user

 

PARAMETERS

  -RoleName <String>

(Required) Role name

 

  -RoleObject <PSRoleInfo>

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

 

  -UserName <String>

(Required) User name

 

  -UserObject <PSUserInfo>

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

 

  <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 Add-RDMRoleToUser -detailed". For technical information, type "Get-Help Add-RDMRoleToUser -full".

 

EXAMPLE 1

PS C:\> Add-RDMRoleToUser -RoleObject $role -UserObject $user

 

Add role to an user.

 

RELATED LINKS