Activity Forums Salesforce® Discussions What is the use of userorgroupid in Salesforce?

  • Deepak

    Member
    February 20, 2020 at 6:56 am

    Hi Shubham,

    When querying on a Share table, the "UserOrGroupId" returns an internal GroupId for criteria-based sharing rules.

    This internal GroupId is used to facilitate the sharing operation and should not be exposed.

    This issue only occurs on criteria-based sharing rules and on Implicit Shares.

  • Shweta

    Member
    February 20, 2020 at 1:48 pm

    userorgroupid: The id of user or group to which access is being granted. To share records using Apex managed sharing, you need to write the Apex code. And it needs userorgroupid field value for sharing records.  Example: testShare.UserOrGroupId = userListId;

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos