Clase de ModifyAccessRequest
Se aplica a: CRM 2015 on-prem, CRM Online
Contains the data that is needed to replace the access rights on the target record for the specified security principal (user or team).
Espacio de nombres: Microsoft.Crm.Sdk.Messages
Ensamblado: Microsoft.Crm.Sdk.Proxy (en Microsoft.Crm.Sdk.Proxy.dll)
Sintaxis
'Declaración
<DataContractAttribute(Namespace:="https://schemas.microsoft.com/crm/2011/Contracts")> _
Public NotInheritable Class ModifyAccessRequest
Inherits OrganizationRequest
[DataContractAttribute(Namespace="https://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class ModifyAccessRequest : OrganizationRequest
Ejemplo
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.
// Grant the first user delete access to the lead.
var modifyUser1AccessReq = new ModifyAccessRequest
{
PrincipalAccess = new PrincipalAccess
{
AccessMask = AccessRights.DeleteAccess,
Principal = systemUser1Ref
},
Target = leadReference
};
Console.WriteLine("Granting delete access to {0} on the lead...\r\n",
GetEntityReferenceString(systemUser1Ref));
_serviceProxy.Execute(modifyUser1AccessReq);
Comentarios
Message Availability
Para que este mensaje funcione, el autor de la llamada debe estar conectado al servidor.
Usage
Pass an instance of this class to the Execute method, which returns an instance of the ModifyAccessResponse class.
Privileges and Access Rights
To perform this action, the caller must have privileges on the entity that is specified in the Target property and access rights on the record that is specified in the Target property. For a list of the required privileges, see ModifyAccess Privileges.
Notes for Callers
This action applies to all child records of the target entity record. For all child records, if the caller does not have share privileges for those entity types or share rights to the records, the child records are not shared. As a result, the owner of the entity record, or a user who shares the record that has share rights, automatically has share rights to all child records of the target entity record. In this case, only the lack of privileges to a particular entity type prevents the child records from being shared.
For a description of how actions on a parent record affect child records, see Cascading Behavior.
Supported Entities
La siguiente tabla muestra las entidades predeterminadas que admiten este mensaje. En el caso de las entidades mostradas, el autor de la llamada debe estar conectado al servidor para que este mensaje esté disponible.
Entity | Availability |
---|---|
Account |
0 (Server) |
Annotation |
0 (Server) |
Appointment |
0 (Server) |
Campaign |
0 (Server) |
CampaignActivity |
0 (Server) |
CampaignResponse |
0 (Server) |
Connection |
0 (Server) |
Contact |
0 (Server) |
Contract |
0 (Server) |
ConvertRule |
0 (Server) |
CustomerOpportunityRole |
0 (Server) |
CustomerRelationship |
0 (Server) |
DuplicateRule |
0 (Server) |
0 (Server) |
|
EmailServerProfile |
0 (Server) |
Entitlement |
0 (Server) |
Fax |
0 (Server) |
Goal |
0 (Server) |
GoalRollupQuery |
0 (Server) |
Import |
0 (Server) |
ImportFile |
0 (Server) |
ImportMap |
0 (Server) |
Incident |
0 (Server) |
IncidentResolution |
0 (Server) |
Invoice |
0 (Server) |
Lead |
0 (Server) |
Letter |
0 (Server) |
List |
0 (Server) |
Mailbox |
0 (Server) |
MailMergeTemplate |
0 (Server) |
msdyn_PostAlbum |
0 (Server) |
msdyn_wallsavedqueryusersettings |
0 (Server) |
Opportunity |
0 (Server) |
OpportunityClose |
0 (Server) |
OrderClose |
0 (Server) |
PhoneCall |
0 (Server) |
ProcessSession |
0 (Server) |
Queue |
0 (Server) |
Quote |
0 (Server) |
QuoteClose |
0 (Server) |
RecurringAppointmentMaster |
0 (Server) |
Report |
0 (Server) |
RoutingRule |
0 (Server) |
SalesOrder |
0 (Server) |
ServiceAppointment |
0 (Server) |
SharePointDocumentLocation |
0 (Server) |
SharePointSite |
0 (Server) |
SLA |
0 (Server) |
SLAKPIInstance |
0 (Server) |
SocialActivity |
0 (Server) |
SocialProfile |
0 (Server) |
Task |
0 (Server) |
Template |
0 (Server) |
UserForm |
0 (Server) |
UserQuery |
0 (Server) |
UserQueryVisualization |
0 (Server) |
Workflow |
0 (Server) |
Jerarquía heredada
System.Object
Microsoft.Xrm.Sdk.OrganizationRequest
Microsoft.Crm.Sdk.Messages.ModifyAccessRequest
Seguridad de hilo
Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para el hilo. No se garantiza que los miembros de instancia sean seguros para el hilo.
Plataformas
Plataformas de desarrollo
Windows Vista, Windows Server 2003 y
Plataformas de destino
Windows Vista,Windows XP
Change History
Vea también
Referencia
Miembros de ModifyAccessRequest
Espacio de nombres de Microsoft.Crm.Sdk.Messages
Actions on Entity Records
ModifyAccessResponse
Otros recursos
How 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.
© 2014 Microsoft Corporation. All rights reserved.