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

    Salesforce Sales Cloud Data

    Send Email to Salesforce Sales Cloud Data from Marketing Cloud Using Import and Automation Filter Activity

    Blog in Others

    Go through this blog to have a better understanding of how import and automation filter activity works in Salesforce Marketing Cloud. Requirement: We want to…

    Automation process, Automation Studio, Content Builder, Create Templates, Data Extension
    Udit Oct 13, 2020
    5,849  Views
    What is a Test class in Salesforce? | The Ultimate Guide

    What is a Test class in Salesforce? | The Ultimate Guide

    Blog in Others

    Testing is an important part of SDLC. So, before deploying our code to the production environment, Salesforce requires at least 75% of your code to…

    Assert Statements, Book’s Price, Code, Code Coverage, Deployment
    Rupesh Pandey Apr 14, 2023
    2,024  Views

    Exploring the Latest Advancement with Salesforce Einstein Copilot's General Availability

    Blog in Others

    Salesforce announced today during its World Tour NYC that Salesforce Einstein Copilot, its conversational AI assistant for CRM, is now generally available. Einstein Copilot was…

    CloudMetic Solutions, Copilot Actions, Copilot Analytics, Copilot Builder, Copilot Recommendations
    Cloudmetic May 13, 2024
    1,777  Views

    Popular Salesforce Videos

    After Triggers | Trigger in Salesforce - Part 2

    After Triggers | Trigger in Salesforce - Part 2

    Video in Others, Salesforce Apex

    In this video, we are going to look into - After Trigger with Example, Our Scenario is - For After Insert Whenever my account record…

    Salesforce Training, Apex, Salesforce Trigger, Salesforce Video, Salesforce Learning
    kanika Mar 22, 2021
    4,128  Views
    Unleash the Power of Compare Tables | Salesforce Video

    Unleash the Power of Compare Tables | Salesforce Video

    Video in Others, Salesforce Products

    In this video, you will learn how to use compare tables to calculate complex calculations quickly, which you can then use to visualize your data.…

    Salesforce Training, salesforce, Salesforce Video, Salesforce Learning, Compare Tables
    Pooja Jun 19, 2020
    2,165  Views
    Salesforce Diagram | Salesforce Diagramming Framework

    Salesforce Diagram | Salesforce Diagramming Framework

    Video in Salesforce Stories, Salesforce Training

    Diagrams help drive key project decisions, align delivery teams, and help everyone understand where you’re going and what’s been done. Consistent, easy-to-understand diagrams are a…

    Salesforce Training, salesforce, Salesforce Video, Salesforce Learning, Connectors
    Prafull Aug 5, 2021
    1,961  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.