Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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 9 years, 9 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

    application solution

    Popular Salesforce Blogs

    How DemandBlue Helped a Leading Mortgage Lending and Refinancing Company To Strategize New Lead Assignment Process With Use of On-demand Salesforce Solution

    Blog in Salesforce

    How A Leading Mortgage Company Streamlined More Lead Closures Implementing On-demand Salesforce Solution Better Customer expectations and more lead closures are the common factors for…

    Client’s Stakeholders, Configurations, Custom Account-based Lead Assignment Model, Custom Fields, Custom Salesforce Platform
    DemandBlue Sep 6, 2021
    2,009  Views
    salesforce consulting

    The Power of Salesforce Consulting Services for Successfully Meeting Business Needs

    Blog in Salesforce, Salesforce Consultant, Salesforce Implementation

    Time and again, Salesforce has proved itself as the best cloud CRM platform across the globe. What's more, it is also leading to successful CRM…

    automation tools, Best Salesforce Consultants, Best Solution, Business, Business Consultant
    Emorphis Oct 29, 2020
    4,601  Views
    salesforce community license

    4 Types of Salesforce Community Licenses

    Blog in Salesforce

    The foremost challenge that organizations face today is to provide excellent customer service to their customers and partners and include it in their daily processes.…

    Business, Business Needs, Channel Account, Community License, Community User License
    CRMJetty Feb 3, 2022
    5,457  Views

    Popular Salesforce Videos

    Salesforce Stock CRM Huge News!

    Salesforce Stock CRM Huge News!

    Video in Others, Salesforce Stories

    Why is Salesforce Stock CRM Stock going UP? Is Salesforce stock a buy? Should I buy CRM Stock? Is Salesforce stock a good investment? In…

    salesforce, Salesforce Video, Salesforce Stock, CRM Stock, Salesforce Stock CRM
    Nauman Sep 4, 2020
    1,622  Views
    Real-time Scenario: Custom Rollup Summaries Using Triggers | Salesforce Tutorial

    Real-time Scenario: Custom Rollup Summaries Using Triggers | Salesforce Tutorial

    Video in Salesforce Apex

    Watch this video to learn all about Custom Rollup Summaries Using Triggers using the real-time scenarios. If you have any doubts or concerns do let…

    Salesforce Training, Salesforce Tutorial, Salesforce Apex, Salesforce Triggers, salesforce
    Rupal Kakkar Jul 8, 2022
    2,939  Views
    Salesforce Lightning: Custom Theming and Branding

    Salesforce Lightning: Custom Theming and Branding

    Video in Lightning

    As part of myLightning, Custom Theming and Branding for Lightning Experience lets you customize key styling elements, such as the global header color, brand image,…

    Salesforce Lightning Experience, Salesforce Lightning Design System, How To Learn Salesforce Lightning, Lightning App Builder, Salesforce Lightning Page
    Nauman Feb 1, 2018
    2,869  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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.