Contains the data that is needed to replace the access rights on the target record for the specified security principal (user or team). Namespace: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)
The following example shows how to use this message. For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface. For the complete sample, see the link later in this topic.
For this message to work, the caller must be connected to the server.
Privileges and Access Rights
To perform this action, the caller must have privileges on the specified entity in the Target property and access rights on the specified record in the Target property. For a list of the required privileges, see RevokeAccess Privileges.
Notes for Callers
This action also applies to all child records of the target record. However for all child records, access rights are only modified if the caller has share privileges for those entity types and share access rights to the records. As a result, the owner of the target record, or a user who shares the target record, automatically has share rights to all child records of the target record.
For a description of how actions on a parent record affect child records, see Cascading Behavior.
The following table shows the default entities that support this message. For the listed entities, the caller must be connected to the server for this message to be available.
Development PlatformsWindows Server 2008
Target PlatformsWindows Server 2008, Windows 7 (All Versions), Windows Vista (All Versions)
Actions on Entity Records
Other ResourcesHow Record-Based Security Can Be Used to Control Access to Records In Microsoft Dynamics CRM
Sample: Share Records Using GrantAccess, ModifyAccess and RevokeAccess Messages
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.