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

    Top Salesforce Spring '23 Experience Cloud Features

    Blog in Salesforce

    Salesforce Experience Cloud focuses on accelerating deployment, saving time, fostering great customer engagement, enhancing security, boosting productivity, and fostering collaboration. Let's have a look at…

    Aura Sites, Communities in Experience Cloud, Community Building, Community Cloud, Customer Engagement
    Apphienz Mar 3, 2023
    1,517  Views

    How Can a Salesforce Certification Accelerate Your Career?

    Blog in Salesforce Career

    The field of Cloud Computing is vast and ever-changing, with technological developments and breakthrough applications coming thick and fast. The range and scope of opportunities…

    Career in Salesforce, Certified Administrator, Salesforce Career, Salesforce Certification, Salesforce Course
    Simplilearn Apr 15, 2019
    2,782  Views

    How To Get Started With Workflow Automation? | Salesforce Guide

    Blog in Salesforce

    Automation is being embraced by businesses globally. In order to reduce employees' growing workloads and provide customers with the services they expect, it has become…

    Automation, Best Low-code Tools, Best Toolkits, Built-in-Intelligence, Business
    Apphienz Nov 23, 2022
    2,124  Views

    Popular Salesforce Videos

    Create an Email Alert Workflow Rule | Workflow Rules in Salesforce | Salesforce Automations

    Create an Email Alert Workflow Rule | Workflow Rules in Salesforce | Salesforce Automations

    Video in Salesforce Training

    Configuring Workflow Rule Email Alerts or Notifications Follow. Workflow Rules are automatic processes that trigger an action when a certain event occurs, such as updating…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Prafull Jun 28, 2022
    2,321  Views
    Apex Programming Tutorial for beginners : Data Types, Variables and Constants in Salesforce

    Apex Programming Tutorial for beginners : Data Types, Variables and Constants in Salesforce

    Video in Salesforce Apex, Salesforce Training

    Apex Programming Tutorial for beginners: Data Types, Variables and Constants in Salesforce.

    Apex Data Types In Salesforce, Apex Data Type String, Salesforce Data Types, Salesforce Data Type Currency, Salesforce Data Type Number
    Shiv Kumar Sharma Jan 30, 2018
    2,888  Views
    Salesforce: Everything You Need to Know About Order Management

    Salesforce: Everything You Need to Know About Order Management

    Video in Salesforce Training

    THE GOAL: Which Salesforce Order Management application is best? Well, that depends…. Salesforce offers three primary applications for order management, and they all work extremely…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Learning, Business
    Abhishek Jul 12, 2022
    1,760  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.