Show/Hide Toolbars

Reporting Services CMD

Command: SetPolicies

 

Manage Roles

 

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

 

SetPolicies /N:  [/U:][/A:][/D:]

 

 

Parameters

 

/N:                Name of item to set policies on

/A:                Add role

/D:                Delete role

/U:                Username (group or user)

/R                        Remove username/group. Only to be used with /U:

 

Note: /A /D are mutually exclusive

 

Examples

 

 add a group aDomain\sales grp to content manager role to sales report

 

 setpolicies /n:"sales report" /a:"Content Manager" /u:"aDomain\sales group"

 

 

 remove a group aDomain\sales grp from content manager role to sales report

 

 setpolicies /n:"sales report" /a:"Content Manager" /u:"aDomain\sales group"

 

 

 

remove a user Domain\AUser from the sales report

 setpolicies /n:"sales report"  /u:"aDomain\AUser" /r

 

 

Remarks

 

 

See Also

 

GetPolicies

GetRole