ReportingService2010.CreateRole Method (String, String, String)
Adds a new role to the report server database. This method only applies to native mode.
Assembly: ReportService2010 (in ReportService2010.dll)
The name of the new role. The value of this parameter must be between 1 and 260 characters long.
A description of the new role. The value of this parameter must be between 1 and 512 characters long.
An array of task IDs that represent the tasks to set for the role.
The table below shows header and permissions information on this operation.
SOAP Header Usage
Native Mode Required Permissions
SharePoint Mode Required Permissions
This method throws an OperationNotSupportedSharePointMode exception when invoked in SharePont mode.
The Name and Description parameters are required and should not be set to null (Nothing in Visual Basic). The value for Name must be unique.
You must assign at least one task to the role. You cannot combine system-level and item-level tasks within a single role. For more information about tasks, see Tasks and Permissions.
To compile this code example, you must reference the Reporting Services WSDL and import certain namespaces. For more information, see . The following code example uses the 317946aa-8e95-4f0b-8170-394c9d5e184emethod to create a user role that has permissions to view folders and reports: