Show/Hide Toolbars

Reporting Services CMD

Command: SetRole

 

Create a new role or system role

 

SSRS Version:

 

2000, 2005 (N), 2005 (I), 2008 (N), 2008 (I),2008r2(N), 2008r2(I), 2012(N), 2012(I), Azure

 

(N)=Native

(I)=Integrated

 

 

Syntax

 

SetRole /N: /D: /T:

           

 

 

 

Parameters

 

[/N:] Name of new role

[/D:] description

[/T:] name of task

 

Examples

 

eg. create a new role 

 

                 role name  (/n:)        : demo role

                 role description (/d:): description for role

                 tasks (/t:)                : View models

                                         : Consume reports

 

 

 setrole /n:"demo role" /d:"Description for demo role"  /t:"View models" /t:"Consume reports"

 

Remarks

 

You can create roles and system roles with this command.

Item level and system level tasks cannot be combined in a role.

Item that have spaces in them /n, /d, /t must be enclosed in quotes see example

You can add more than one task to the role. In the example above you can see 2 task are added.

You do not need to add all tasks to the role, they can be added later.

 Tasks can be added/deleted at a later time using the command SetRoleProps.

 

 

See Also

 

DelRole                - Delete role

GetRole                - Get task in a role

GetServerRoles        - Get server roles- list of roles

GetTasks                - list of tasks

SetRole                - Set role- create a role

SetRoleProps        - Set role properties, amend tasks and description

 

 

 

Permission and task diagram

 

 

clip0024

 

 

SSRS 2010 Item TasksItem Tasks SSRS 2012