Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How to give access to account team member so that they can access all related object with account?

    Tagged: Account, Salesforce Apex, Share, UserOrGroupId

    • Salesforce® Discussions

      How to give access to account team member so that they can access all related object with account?

      Posted by Audrey on April 21, 2016 at 7:01 AM

      I would like to know how to give read only access to a team member so that he can access all the related object with account.

      Suyash replied 10 years, 6 months ago 2 Members · 1 Reply
      • Account
      • Salesforce Apex
      • Share
      • UserOrGroupId
    • 1 Reply
    • Suyash

      Member
      April 21, 2016 at 10:01 AM

      Hi Audrey,
      For this we use sharing via apex. In this you need to query account team member of each account with all the related object records on it one by one. And then create a share (Share is object in salesforce) for each child record by giving the team member id in its Userorgroupid field. Sample code can be found in below link.

      Refer to this link:
      https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_bulk_sharing_creating_with_apex.html

       

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    Collections in Salesforce

    Collections in Salesforce - All you Need to Know

    Blog in Salesforce

    There are basically 3 types of collections used in Apex i.e. List Set Map List List is a collection of ordered elements. This means, each…

    Business Process, Collections, Collections in Apex, Collections in Salesforce, Duplicate Values
    Romil Oct 8, 2021
    4,825  Views
    Event Monitoring in Salesforce

    Real-Time Event Monitoring in Salesforce

    Blog in Salesforce, Salesforce Admin

    Introduction Event monitoring provides you with the power to visualize however users are interacting with Salesforce in a very whole new way. In today’s world,…

    API calls, API Transactions, Async SOQL, Auditing, Auditing App
    Arun Sep 27, 2021
    10,350  Views

    Optimizing Insurance Operations with CRM Solutions

    Blog in Salesforce Products

    In the insurance industry, efficient management of customer relationships is crucial for business success. As customer demands grow and regulatory requirements become more stringent, leveraging…

    Claims Processing, CRM Solutions, Customer Experience, Customer Relationship Management, Customer Service
    Aleksandar Aug 1, 2025
    604  Views

    Popular Salesforce Videos

    Which Is Better Career Salesforce Admin or Developer?

    Which Is Better Career Salesforce Admin or Developer?

    Video in Salesforce Stories, Salesforce Admin

    Wondering Which is the better Career, Salesforce Admin or Salesforce Developer? Watch this video and join this group to learn all about it. Join this…

    Salesforce Jobs, Salesforce Developer, salesforce, Salesforce Admin, Salesforce Career
    Intelogik Aug 29, 2022
    1,354  Views
    Highlights of the Salesforce Winter '22 Release for Nonprofits

    Highlights of the Salesforce Winter '22 Release for Nonprofits

    Video in Salesforce Stories

    The video includes both Winter ‘22 Salesforce Platform updates and Nonprofit Cloud tools. Chapters: 0:00 General Salesforce.com Platform Updates 8:13 Salesforce.com Release for Fundraising and…

    Salesforce Training, Salesforce Tutorial, salesforce, salesforce platform, Salesforce Video
    Jogender Nov 25, 2021
    2,597  Views
    Simplified Non-Functional Testing for Salesforce Developers

    Simplified Non-Functional Testing for Salesforce Developers

    Video in Salesforce Training

    Testing is indispensable to measure, optimize performance, and improve user experience. Watch this video to see how you can measure performance across physical mobile devices…

    Salesforce Training, Salesforce Tutorial, Salesforce Integration, salesforce, User Experience
    Pooja Oct 26, 2021
    2,068  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.