---
schema_version: "1"
id: 634e84972bd4c423aed38cbc5a155a34df02d51652ef5cbaafe55ae50984a260
title: AccountTeamMember
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_accountteammember.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_accountteammember.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7a26fe950801bce2d0b35d901e3868aca08dedf2b80d5a702713b18876d42739
description: Represents a User who is a member of an Account team.
---
# 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.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

## Special Access Rules

- 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.

## Fields

<table class="featureTable sort_table" summary="">


          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d68375e113">Field Name</th>

              <th class="featureTableHeader  " id="d68375e116">Details</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name"><span class="keyword parmname">AccountAccessLevel</span></td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Nillable, Sort, Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Level of access that the User has to the Account. The possible values are:<ul class="ul bulletList">
                      <li class="li"><span class="keyword parmname">Read</span></li>

                      <li class="li"><span class="keyword parmname">Edit</span></li>

                      <li class="li"><span class="keyword parmname">All</span></li>

                    </ul>
                    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
                    <span class="keyword parmname">AccountAccessLevel</span>, <span class="keyword parmname">ContactAccessLevel</span>,
                    <span class="keyword parmname">OpportunityAccessLevel</span>, or <span class="keyword parmname">CaseAccessLevel</span>
                    field must be set higher than the organization’s default access level.
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name"><span class="keyword parmname">AccountId</span></td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Required. ID of the Account to which this user is a team member. Must be a valid
                    account ID.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name"><span class="keyword parmname">CaseAccessLevel</span></td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Nillable, Sort, Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Level of access that the User has to cases associated with the account. The possible
                    values are:<ul class="ul bulletList">
                      <li class="li"><span class="keyword parmname">None</span></li>

                      <li class="li"><span class="keyword parmname">Read</span></li>

                      <li class="li"><span class="keyword parmname">Edit</span></li>

                    </ul>
                    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
                    <span class="keyword parmname">AccountAccessLevel</span>, <span class="keyword parmname">ContactAccessLevel</span>,
                    <span class="keyword parmname">OpportunityAccessLevel</span>, or <span class="keyword parmname">CaseAccessLevel</span>
                    field must be set higher than the organization’s default access level. This field
                    is available in API version 37.0 and later.
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name"><span class="keyword parmname">ContactAccessLevel</span></td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Nillable, Sort, Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Level of access that the User has to contacts associated with the account. The
                    possible values are:<ul class="ul bulletList">
                      <li class="li"><span class="keyword parmname">None</span></li>

                      <li class="li"><span class="keyword parmname">Read</span></li>

                      <li class="li"><span class="keyword parmname">Edit</span></li>

                      <li class="li"><span class="keyword parmname">Controlled By Parent</span></li>

                    </ul>
                    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
                    <span class="keyword parmname">AccountAccessLevel</span>, <span class="keyword parmname">ContactAccessLevel</span>,
                    <span class="keyword parmname">OpportunityAccessLevel</span>, or <span class="keyword parmname">CaseAccessLevel</span>
                    field 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. This field
                    is available in API version 37.0 and later.
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name"><span class="keyword parmname">CurrencyIsoCode</span></td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Restricted picklist</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Available only for orgs with the multicurrency feature enabled. Contains the ISO code
                    for any currency allowed by the org.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name">
                <span class="keyword parmname">IsDeleted</span>
              </td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Defaulted on create, Filter</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether the object has been moved to the Recycle Bin (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).
                    Label is <strong class="ph b">Deleted</strong>.</dd>


                </dl>

                <div class="box message info">
                  <div class="inner">
                    <div class="bd">
                      <div class="media">
                        <img class="img mtm" src="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png" alt="Note">
                        <div class="mediaBd">
                          <h4 class="mbs">Note</h4>
                          <p>An AccountTeamMember record that is deleted is not moved to the Recycle Bin. A deleted
                            AccountTeamMember record can’t be undeleted unless the record was cascade-deleted when
                            deleting a related Account. For directly deleted AccountTeamMember records, don’t
                            use the isDeleted field to detect deleted records in SOQL queries or <samp class="codeph nolang">queryAll()</samp> calls.
                          </p><p class="p">The&nbsp;<samp class="codeph nolang">getDeleted()</samp> call also doesn’t show deleted account team members unless the
                            record was deleted from an account related list or the Developer Console.</p>
                          <p></p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name"><span class="keyword parmname">OpportunityAccessLevel</span></td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Nillable, Sort, Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Level of access that the User has to opportunities associated with the account. The
                    possible values are:<ul class="ul bulletList">
                      <li class="li"><span class="keyword parmname">None</span></li>

                      <li class="li"><span class="keyword parmname">Read</span></li>

                      <li class="li"><span class="keyword parmname">Edit</span></li>

                    </ul>
                    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
                    <span class="keyword parmname">AccountAccessLevel</span>, <span class="keyword parmname">ContactAccessLevel</span>,
                    <span class="keyword parmname">OpportunityAccessLevel</span>, or <span class="keyword parmname">CaseAccessLevel</span>
                    field must be set higher than the organization’s default access level. This field
                    is available in API version 37.0 and later.
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name"><span class="keyword parmname">PhotoURL</span></td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">URL</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort, Group</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Read only. Retrieves the users Chatter photo URL. This field is available in API
                    version 37.0 and later.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name">
                <span class="keyword parmname">TeamMemberRole</span>
              </td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Nillable, Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Role associated with this team member. One of the valid team member roles defined for
                    your organization. Label is <strong class="ph b">Team Role</strong>.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name"><span class="keyword parmname">Title</span></td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">string</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort, Group</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Read only. Retrieves the user’s title. This field is available in API version 37.0 and
                    later.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d68375e113" data-title="Field Name">
                <span class="keyword parmname">UserId</span>
              </td>

              <td class="entry" headers="d68375e116" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Required. ID of the User who is a member of this account team. Must be a valid User
                    ID.</dd>


                </dl>

              </td>

            </tr>

          </tbody>

        </table>

## Usage

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](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/langCon_apex_SOQL_query_all_rows.htm), the ALL ROWS keywords don’t query deleted account team member records.

## Associated Objects

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.

[AccountTeamMemberChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm) (API version 66.0)

Change events are available for the object.

#### See Also

- [Account](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_account.htm "Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners).")