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, 5 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

    4 Favorite Spring 18 Release Features

    4 favorite Salesforce Spring ’18 Release features

    Blog in Salesforce Releases

    There has been a lot of buzz in the cyberspace about the much awaited Salesforce Spring '18 Release. Even though the Salesforce Spring '18 Release…

    Data Protection in Salesforce, ISVforce, Lightning Experience Navigation Bar, Lightning Experience Themes, Salesforce Einstein
    BLUE FLAME LABS PRIVATE LIMITED Jan 31, 2018
    4,573  Views
    quote to cash

    10 Ways to Enhance Your Buyer Experience with Quote-to-Cash Solutions | Salesforce Guide

    Blog in Sales, Salesforce Products

    When you have hundreds or thousands of leads to respond to in a single day, errors happen and you get overwhelmed. Right from sending the…

    Apttus Technology Tools, billing, Billing Management, Business Process, Buyer Experience
    CommerceCX Jun 30, 2021
    2,074  Views
    digital transformation

    Why Digital Transformation is Essential for Business Growth? | Salesforce Guide

    Blog in Salesforce

    With reports suggesting that worldwide spending on the technologies enabling digital transformation is forecast to reach $2.3 trillion (£1.8 trillion) in 2023, more and more…

    Applications, Business, Business Executives, Business Growth, Business Needs
    Kcloud Dec 18, 2020
    3,047  Views

    Popular Salesforce Videos

    Salesforce Triggers Part-1

    Salesforce Triggers Part-1

    Video in Salesforce Apex

    A trigger is an Apex script that executes before or after data manipulation language (DML) events occur. Apex triggers enable you to perform custom actions…

    Salesforce Apex, Salesforce Triggers, salesforce, Salesforce Learning Steps For Beginners, How To Learn Apex
    Pooja Jan 2, 2019
    2,744  Views
    Setting Up Service Territories and Operating Hours | Salesforce Webinar

    Setting Up Service Territories and Operating Hours | Salesforce Webinar

    Video in Others

    Scale your business and ensure optimized performance by setting up service territories in Salesforce Field Service. In Salesforce Field Service, operating hours represent service territory…

    salesforce, Salesforce Webinar, Salesforce Video, Salesforce Field Service
    AblyPro Jul 2, 2024
    1,208  Views
    Salesforce Connections 2018 Keynote - Ch. 4: U.S. Bank Is A Trailblazer

    Salesforce Connections 2018 Keynote - Ch. 4: U.S. Bank Is A Trailblazer

    Video in Events

    Salesforce Connections 2018 Keynote – Ch. 1: Corporate Positioning Salesforce Connections 2018 Keynote – Ch. 2: Ticketmaster Is A Trailblazer Salesforce Connections 2018 Keynote –…

    Salesforce CRM, Salesforce Keynote, Salesforce Connections, Salesforce Events, US Banks
    Hazel Jul 11, 2018
    1,809  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.