Privilege entity messages and methods


Applies To: Dynamics CRM 2015

A privilege is a permission to perform an action in Microsoft Dynamics CRM. The platform checks for the privilege. It fails if the user does not hold the privilege.

Microsoft Dynamics CRM contains a complete set of privileges for all entities, including custom entities. Privileges cannot be added to the system except that when a custom entity is added, generated custom entity privileges are added for that entity. When a custom entity is deleted, the corresponding privileges are deleted also.

For more information, see Security role and privilege reference. The schema name for this entity is Privilege. To view the entity metadata for your organization, install the Metadata Browser solution described in Browse the metadata for your organization. You can also view the metadata for an uncustomized organization in the Excel file called EntityMetadata.xlsx included in the top-level folder of the SDK download.

The following table describes the messages for this entity, which you use with the IOrganizationService.Execute method.




Initializes a new record from an existing record provided that an attribute map is defined for the two entities. For more information, see Customize entity and attribute mappings.


Detects and retrieves duplicate records for the specified record provided that duplicate detection is enabled and there are published duplicate detection rules for the entity. For more information, see Detect duplicate data.


Retrieves a privilege. You can also call the IOrganizationService.Retrieve method.


Retrieves a collection of privileges. You can also call the IOrganizationService.RetrieveMultiple method.


Retrieves the set of privileges defined in the system.


Retrieves the set of privileges for a user. Use the RetrieveMultipleRequest method instead.

See Also

How role-based security can be used to control access to entities in Microsoft Dynamics CRM
Privilege and role entities
Role (security role) entity messages and methods
Sample: Associate a security role to a team
Privilege entity privileges

© 2016 Microsoft. All rights reserved. Copyright