Поделиться через


AddUserToRecordTeamRequest Class

 

Applies To: Dynamics CRM 2015

Contains the data that is needed to add a user to the auto created access team for the specified record.

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 ref class AddUserToRecordTeamRequest sealed : OrganizationRequest
[<Sealed>]
[<DataContractAttribute(Namespace = "https://schemas.microsoft.com/crm/2011/Contracts")>]
type AddUserToRecordTeamRequest = 
    class
        inherit OrganizationRequest
    end
<DataContractAttribute(Namespace := "https://schemas.microsoft.com/crm/2011/Contracts")>
Public NotInheritable Class AddUserToRecordTeamRequest
    Inherits OrganizationRequest

Constructors

Name Description
System_CAPS_pubmethod AddUserToRecordTeamRequest()

Initializes a new instance of the AddUserToRecordTeamRequest class.

Properties

Name Description
System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data. Optional.(Inherited from OrganizationRequest.)

System_CAPS_pubproperty Item[String]

Gets or sets the indexer for the Parameters collection.(Inherited from OrganizationRequest.)

System_CAPS_pubproperty Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.(Inherited from OrganizationRequest.)

System_CAPS_pubproperty Record

Gets or sets the record for which the access team is auto created. Required.

System_CAPS_pubproperty RequestId

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

System_CAPS_pubproperty RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.(Inherited from OrganizationRequest.)

System_CAPS_pubproperty SystemUserId

Gets or sets the ID of system user (user) to add to the auto created access team. Required.

System_CAPS_pubproperty TeamTemplateId

Gets or sets the ID of team template which is used to create the access team. Required.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod 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 the Execute 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 CRM
How record-based security can be used to control access to records in Microsoft Dynamics CRM

Return to top

© 2016 Microsoft. All rights reserved. Copyright