AddUserToRecordTeamRequest Class
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Contains the data that is needed to add a user to the auto created access team for the specified record.
For the Web API use the AddUserToRecordTeam Action.
Namespace: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Sdk.OrganizationRequest
Microsoft.Crm.Sdk.Messages.AddUserToRecordTeamRequest
Syntax
[DataContractAttribute(Namespace = "https://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class AddUserToRecordTeamRequest : OrganizationRequest
<DataContractAttribute(Namespace := "https://schemas.microsoft.com/crm/2011/Contracts")>
Public NotInheritable Class AddUserToRecordTeamRequest
Inherits OrganizationRequest
Constructors
Name | Description | |
---|---|---|
AddUserToRecordTeamRequest() | Initializes a new instance of the AddUserToRecordTeamRequest class. |
Properties
Name | Description | |
---|---|---|
ExtensionData | Gets or sets the structure that contains extra data. Optional.(Inherited from OrganizationRequest.) |
|
Item[String] | Gets or sets the indexer for the Parameters collection.(Inherited from OrganizationRequest.) |
|
Parameters | Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.(Inherited from OrganizationRequest.) |
|
Record | Gets or sets the record for which the access team is auto created. Required. |
|
RequestId | Gets or sets the ID of an asynchronous operation (system job). Optional. (Inherited from OrganizationRequest.) |
|
RequestName | Gets or sets the name of the request. Required, but is supplied by derived classes.(Inherited from OrganizationRequest.) |
|
SystemUserId | Gets or sets the ID of system user (user) to add to the auto created access team. Required. |
|
TeamTemplateId | Gets or sets the ID of team template which is used to create the access team. Required. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Remarks
Message Availability
For this message to work, the caller must be connected to the server.
Usage
Pass an instance of this class to theExecute method, which returns an instance of the AddUserToRecordTeamResponse class.
Privileges and Access Rights
To perform this action, the caller must have the Share privilege on the entity specified in the Record property. The caller must also have privileges on the SystemUser entity and the TeamTemplate entity and access rights on the records specified in the SystemUserId property and the TeamTemplateId property. In addition, the caller must have access rights on the record specified in the Record property that match access rights specified in the team template. For example, if the team template specifies the Read access right on the account entity, the caller must have the Read access right on the account record, specified in the Record property. For a complete list of required privileges, see AddUserToRecordTeam message privileges.
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
AddUserToRecordTeamResponse
Microsoft.Crm.Sdk.Messages Namespace
AddUserToRecordTeam message privileges
Use access teams and owner teams to collaborate and share information
User and team entities
Team entity messages and methods
TeamTemplate entity messages and methods
How role-based security can be used to control access to entities in Microsoft Dynamics 365
How record-based security can be used to control access to records in Microsoft Dynamics 365
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright