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("", RequestNamespace="", ResponseNamespace="", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public void AddRoleDef (
	string roleName,
	string description,
	ulong permissionMask



A string that contains the name of the role definition.


A string that contains the description for the role definition.


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.