Skip to main content

#Account Teams2 personnes en discutent

 Salesforce documentation states that to edit/remove Account Team Members, users need Read access on Users, Edit access on Accounts, and to be the Account Owner or above the Account Owner in the role hierarchy.  

Edit/Remove access on Account Team Members

 

 However, the same documentation also states that users in a Public Group with Edit access to an Account granted through a Sharing Rule can add/remove Team Members.  

 

Article: 

Working with Teams on Your Accounts | Salesforce Help

  

image.png

I tested the Public Group approach. The user in my project already has Read access on Users and Edit access on Accounts, and further I created the Public Group receives Read/Write Account record access through a Sharing Rule. 

 

Even after this, they do not get the Edit/Delete row actions and also don't see the Remove All Members option. 

 

Can someone clarify how the “remove” access mentioned for Public Groups is expected to work in Lightning?  

Note: I would prefer not to use the other options, such as ownership, Modify All, role hierarchy, or a custom Flow running in system mode, just to provide this access for couple of users.

 

So, looking for confirmation does removing a team member still require the user to be the Account Owner, above the Account Owner in the role hierarchy, or have broader access such as Modify All? If so, what does the Public Group documentation mean by “add/remove Team Members”?

 

#Salesforce Developer  #Account Teams  #Service Cloud

1 réponse
  1. 2 sept., 16:14

    Hi Sana, 

     

    Good catch — this looks like a genuine documentation inconsistency, and your test result matches known real-world behavior: the Lightning UI's Add Team Members / Remove All Members buttons are gated by a hardcoded ownership/role-hierarchy check, not by generic "Edit access to the Account" from any source. Sharing-Rule-granted edit access (via Public Group) satisfies the underlying object permission for API/Apex DML, but doesn't unlock the row-level UI actions in Lightning. 

     

    So to directly answer your question: yes, in practice, removing/adding a team member via the standard Lightning UI still requires the user to be the Account Owner, above the Owner in role hierarchy, or have Modify All — Sharing Rule access alone doesn't surface those UI controls, regardless of what the "Public Group" bullet implies. 

     

    What that bullet likely refers to: doing it via the API/Apex directly (not the standard related-list buttons) — a user with Sharing-Rule-based Edit access can successfully insert/delete AccountTeamMember records programmatically, even though they won't see the buttons in the UI. Worth testing that specifically (e.g., via Workbench or an anonymous Apex insert as that user) to confirm — if that succeeds, it confirms the doc is describing API-level access, not the Lightning UI experience. 

     

    If you need this for a couple of specific users without ownership/Modify All, a small custom LWC/Quick Action calling Apex (with sharing) to add/remove members would work, since the underlying permission is already there via your Sharing Rule — you'd just be bypassing the UI's hardcoded ownership check. 

     

    Reference:

    https://help.salesforce.com/s/articleView?id=sales.accountteam_add.htm&language=en_US&type=5

     

     

    Worth submitting feedback on that Help article too, since the wording does read as if the UI buttons should work for Sharing-Rule access. 

     

0/9000

Good Day Beautiful People of the Community,

There is likely a simple answer to this, but even if the planets align I still cannot seem to figure it out. The scenario: When user 1 adds an account team member the Account, Contact, and Case Access fields are visible (screenshot 1). However, when user 2 tries to add a team member on the same exact account, they only see the "User" and "Team Role" fields (screenshot 2). 

 

Do you know where in Setup this is controlled? I did confirm the account team member page layout is universal for all users, and FLS is identical for all users.  

 

Any help is greatly appreciated! @* Salesforce Administrators * 

Account Team Member - Access Fields Missing

 

User 2 Account Team View.png

 

 

#Sales Cloud  #Accounts  #Account Teams

5 réponses
  1. 16 janv. 2025, 17:15

    Hi @Rahul Fatnani  I did find the answer to this issue, although I wasn't happy with it but it does indeed make sense.  

    According to Salesforce support: "To add, edit, or remove account team members , below permissions need to be present: Read on users AND Edit on accounts AND Account owner or above the owner in the role hierarchy (this third point is key).

     

    This acts as the record sharing access and users who are not the account owner OR not  above the role hierarchy cannot add team members or can not see the access columns. This is because in the role hierarchy, users who are below the account owner cannot see those accounts as it will grant a higher level of access which would not be a good practice. 

     Hence user is not able to see the column for some records where he is not the owner of account or who is below in the role hierarchy."

     

    Lastly, I found out on my own that if you give the "Log In As" permission to the user, that user will be able to see all four of the access columns. That is because the Log In As permission gives the user View All Data access. That type of access supersedes role hierarchy record sharing, thus the user has access above all account owners and can therefore see those columns. 

     

    @Sandeep Thalluri & @Dimeta Jennings

    Fyi. This is the real answer.  

     

    #Sales Cloud

0/9000

I have a requirement to notify all account team members when a new opportunity is created and I am not sure the best way to do this using flow builder. If I create a record trigger flow when a new Opportunity is created, and then use the get Account Team Member where the AccountId = Record>AccountId. Can I then just use an email action or is there a better way to do this?  Thank you

 

#FlowBuilder #Flow #Email Alerts #Account Teams

1 réponse
  1. 9 nov. 2023, 23:32

    Get all Account Team Member's emails and add them to a collection and you can use the send email action. The variable for the email is text and add them to a text collection. You need a loop and two assignments.

     

    Hope this helps. 

0/9000

I've been looking online for a while and can't figure out how to achieve this. 

 

Opportunities are set to Public Read Only. I have a validation rule that allows Account Owners to create Opportunities. When a user is added on an account team, they are given Read/Write access, so they can edit Opportunities. Currently however an account team member can't create opportunities on accounts they don't own. Does anyone know how to solve for this? #Account Teams

5 réponses
  1. 14 oct. 2021, 21:02

    When you create an Opportunity you're not editing the Account, unless maybe you added a field to the Account object that IS updated when an Opportunity is created, like a Roll-Up Summary or something like that 

    Account.Opportunity_Count__c > PRIORVALUE(Account.Opportunity_Count__c)
0/9000

Need some help with the "Account with Account Teams" report. I have a manger looking for accounts where we don't have a certain role on the account team. I have the filter of "Team Role not equal to Inside Sales Specialist" but it still shows accounts where that role is on the account. 

 

Thoughts?

3 commentaires
0/9000

I cannot seem to enable Account Teams. I have gone to Setup on Lightning and entered Enable Account Teams, Account Teams, Teams, Team, etc. I get nothing!!! Any advice? I'm using Developer. 

Thanks!

Colin

1 commentaire
  1. 15 nov. 2020, 04:43
    Hi @Colin Yoder Have you tried checking if the contact role for the Account teams have been set so you have access to them? You may need to add yourself to the account team and then enable it, that may also be a possibly. I hope I was able to provide some informative suggestions!
0/9000

I understand that case teams are very helpful for case management. Would we ever use Account Teams to extend case management?

1 commentaire
0/9000

Hi All,

 

we are currently setting up our Sales Cloud environment and came upon some questions/limitations regarding (Default) Account Teams and I hope some of you can provide me some advice.

 

We would like our Sales users to be part of account teams, that are automatically assigned their team as soon as one of the users creates a new account. Which sounds like a use case for default account teams. But initially and at later stages when users change, we would like to import the account teams/changes instead of having the user set up their default account team themselves.

But since the default account team is connected to the user setting and hence metadata that we can not import or change via import, we are not able to do this.

There would be a possibility to import account teams directly to the accounts, but then new accounts would not have account teams assigned automatically and when some changes are made to account teams the whole account team assignment import would have to be changed.

 

It sounds fairly unlikely to me, that their is no possibility to overcome and handle this issue.

Has one of you came upon a similar issue or can provide me some impulse of how to handle this?

Thanks!

3 commentaires
  1. 26 nov. 2019, 15:27
    Johanna, Good afternoon, sorry to see this late but I had a similar issue and I now use XL Connector to do all my importing and exporting as it makes life so much easier.
0/9000

Identifying account teams with duplicate team roles.

 

Hello,

 

I'm looking for some help/advice for the best way to identify account teams that have multiple users within the same team role on a household. Ideally, each account team would have 1 user for each role, but from time to time an additional user is added to the account team and assigned a role that is already assigned to a different user.

 

Is there a way to create a report that would help identify account teams that have 2 users assigned to the same team role?

0/9000

Account Teams (basic question),

 

Hi, I've just received some information that Account teams push team member names to new Opportunities when a new opportunity is created for an account. I think I had missed that in my studying. Can anyone please confirm/deny this?

 

Thanks,

Raul

6 commentaires
0/9000