RoleAssignment Element (DeploymentManifest)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Represents an instance of a deployment role assignment (DeploymentRoleAssignment) object.

Definition

DECLARATION
<xs:element name="RoleAssignment" type="DeploymentRoleAssignment" minOccurs="0" maxOccurs="unbounded" />

USAGE
<RoleAssignments>
        <RoleAssignment
                        <Assignment />
                ScopeId="xs:string"
                RoleDefWebId="xs:string"
                RoleDefWebUrl="xs:string"
                ObjectId="xs:string"
                ObjectType="xs:string"
                ObjectUrl="xs:string"
                AnonymousPermMask="xs:string"
        />
</RoleAssignments>

Type

DeploymentRoleAssignment (based on SPRoleAssignment)

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Type Description
ScopeId
xs:string
Required. Specifies whether the scope of the role is list level or Web level.
RoleDefWebId
xs:string
Required. Identifier of the website whose role definition applies to the role.
RoleDefWebUrl
xs:string
Required. URL of the website whose role definition applies to the role.
ObjectId
xs:string
Required. Identifier of the role assignment object.
ObjectType
xs:string
Required. Type of the role assignment object.
ObjectUrl
xs:string
Required. URL to the role assignment object.
AnonymousPermMask
xs:string
Optional. Permission mask for anonymous users.

Child elements

Assignment Element (DeploymentManifest)

Parent elements

RoleAssignments Element (DeploymentManifest)

See also