ReplacePrivilegesRoleRequest ReplacePrivilegesRoleRequest ReplacePrivilegesRoleRequest ReplacePrivilegesRoleRequest Class


Contains the data that is needed to replace the privilege set of an existing role.

For the Web API use the ReplacePrivilegesRole Action.

public ref class ReplacePrivilegesRoleRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
public sealed class ReplacePrivilegesRoleRequest : Microsoft.Xrm.Sdk.OrganizationRequest
type ReplacePrivilegesRoleRequest = class
    inherit OrganizationRequest
Public NotInheritable Class ReplacePrivilegesRoleRequest
Inherits OrganizationRequest


Message Availability

For this message to work, the caller must be connected to the server.


Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of the ReplacePrivilegesRoleResponse class.

Privileges and Access Rights

To perform this action, the caller must have privileges on the Role entity and access rights on the specified record in the RoleId property. For a complete list of the required privileges, see ReplacePrivilegesRole message privileges.


ReplacePrivilegesRoleRequest() ReplacePrivilegesRoleRequest() ReplacePrivilegesRoleRequest() ReplacePrivilegesRoleRequest()

Initializes a new instance of the ReplacePrivilegesRoleRequest class.


ExtensionData ExtensionData ExtensionData ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String] Item[String] Item[String] Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Parameters Parameters Parameters Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
Privileges Privileges Privileges Privileges

Gets or sets an array that contains the IDs and depths of the privileges that replace the existing privileges.

RequestId RequestId RequestId RequestId

Gets or sets the ID of an asynchronous operation (system job). Optional.

(Inherited from OrganizationRequest)
RequestName RequestName RequestName RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
RoleId RoleId RoleId RoleId

Gets or sets the ID of the role for which the privileges are to be replaced.

Applies to

See also