Nerd @ Work

Nerd @ Work

Getting my hands dirty with ideas

  • Home
  • Podcasts
    • Nerd @ Work Lab Podcast 🇮🇹
    • Salesforce Salary Survey Italia 2025-2026 🇮🇹
    • Salesforce Sidekicks 🇮🇹
  • About Me
  • The Trailblazers
  • Subscribe

[Salesforce] The Sobject Crusade: AccountShare

April 12, 2016 — Enrico Murru • Post
Spread the love

Back to the Sobject Crusade list.

Source: AccountShare

This object allow a User that has access to the record to share the Account object directly to a User or a Group.

To create such object you have to change the Account Sharing Settings to at least “Public Read Only” by clicking on Setp > Security Controls > Sharing Settings:

Now the Sharin button will compare on the Account page layout if you don’t see it, add it with the layout editor):

This page shows all the users, groups, roles and territories that have access to the record.

Let’s manually add a new manual share:

And this is the result (added a group and a user):

The Expand List shows the details of the users to whom the Account is shared:

The SOQL to query the objects:

Select Id, Account.Name, RowCause, UserOrGroup.Id, UserOrGroup.Name, UserOrGroup.Type, AccountAccessLevel from accountshare where accountid=’00124000005FoHP’

Account • Crusade • Owner • Salesforce • Sharing Rule
Previous: [Salesforce] The Sobject Crusade: AccountTag
Next: [Salesforce] The Sobject Crusade: AccountPartner

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

Gold Sponsors

ORGanizer for Salesforce Extension




Read my books


Awards

Top Salesforce Dev Blogs Mason Frank Top Salesforce Expert 2017

Archives

© 2025 Nerd @ Work — Powered by Vibes and Cursor