AccountTeamMember
Represents a User who is a member of an Account team.
See also UserAccountTeamMember, which represents a User who is on the default account team of another user.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
-
- This object is available only for Enterprise, Unlimited, and Performance Edition users who have enabled the account team functionality.
- Customer Portal users can’t access this object.
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Description: Level of access that the User has to the Account. This field must be set to an access level that is at least equal to the organization’s default Account access level. In addition, the users’s
AccountAccessLevel,ContactAccessLevel,OpportunityAccessLevel, orCaseAccessLevelfield must be set higher than the organization’s default access level. - Possible values:
- Read — Read
- Edit — Edit
- All — All
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: Required. ID of the Account to which this user is a team member. Must be a valid account ID.
- Relationship name: Account
- Relationship type: relationship
- Refers to: Account
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Introduced: API version 37.0
- Description: Level of access that the User has to cases associated with the account. This field must be set to an access level that is at least equal to the organization’s default case access level. In addition, the users’s
AccountAccessLevel,ContactAccessLevel,OpportunityAccessLevel, orCaseAccessLevelfield must be set higher than the organization’s default access level. - Possible values:
- None — None
- Read — Read
- Edit — Edit
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Introduced: API version 37.0
- Description: Level of access that the User has to contacts associated with the account. This field must be set to an access level that is at least equal to the organization’s default contact access level. In addition, the users’s
AccountAccessLevel,ContactAccessLevel,OpportunityAccessLevel, orCaseAccessLevelfield must be set higher than the organization’s default access level. If the org-wide default for contacts is set to Controlled By Parent, users can’t see or edit the Contact Access field. - Possible values:
- None — None
- Read — Read
- Edit — Edit
- Controlled By Parent — Controlled By Parent
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Introduced: API version 37.0
- Description: Level of access that the User has to opportunities associated with the account. This field must be set to an access level that is at least equal to the organization’s default opportunity access level. In addition, the users’s
AccountAccessLevel,ContactAccessLevel,OpportunityAccessLevel, orCaseAccessLevelfield must be set higher than the organization’s default access level. - Possible values:
- None — None
- Read — Read
- Edit — Edit
- Type: url
- Properties: Filter, Group, Nillable, Sort
- Introduced: API version 37.0
- Description: Read only. Retrieves the users Chatter photo URL.
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Role associated with this team member. One of the valid team member roles defined for your organization. Label is Team Role.
- Type: string
- Properties: Filter, Group, Nillable, Sort
- Introduced: API version 37.0
- Description: Read only. Retrieves the user’s title.
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: Required. ID of the User who is a member of this account team. Must be a valid User ID.
- Relationship name: User
- Relationship type: relationship
- Refers to: User
Use this object to manage the team members of a particular Account and to specify team member roles for those users on that account.
If team members are added by a user with group-based access, those members are removed after an account’s owner is changed. This applies even if the Keep account team option is selected. A Salesforce admin, the account owner, or someone higher in the role hierarchy should add team members to keep team members related to the account.
Sharing rules grant access to individuals or to groups (public groups, queues, roles). That distinction matters for team member retention during ownership changes. If team members are added by a user with group-based access, those team members are removed when the account owner changes. This applies even if the Keep account team.
To keep team members when ownership changes, one of these types of users must add the team members.
- A Salesforce admin
- A user with Modify All Data permission
- The account owner
- A user higher than the account owner in the owner’s direct role hierarchy chain (not a parallel branch)
If you use SOQL statements to query all records in an organization, the ALL ROWS keywords don’t query deleted account team member records.
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version.
- AccountTeamMemberChangeEvent: Introduced in API version 66.0.