This documentation is archived and is not being maintained.

UserGroup.AddRoleDef Method

Windows SharePoint Services 3
Adds a role definition to the current site collection.

Web Service: Users and GroupsWeb Reference: http://<Site>/_vti_bin/usergroup.asmx

[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/directory/AddRoleDef", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/directory/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/directory/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public void AddRoleDef (
	string roleName,
	string description,
	ulong permissionMask
)

Parameters

roleName

A string that contains the name of the role definition.

description

A string that contains the description for the role definition.

permissionMask

A 64-bit unsigned integer in 0x00000000 format that represents a Microsoft.SharePoint.SPRights value and specifies permissions for the new role definition. Use the pipe symbol ("|") in Visual C# or Or in Visual Basic to delimit values when creating a custom permission mask that combines permissions.

Show: