Questions tagged [public-group]

All queries related Pubic Group can be tagged here

Filter by
Sorted by
Tagged with
7
votes
3answers
1k views

any solution to simulate trigger behaviour on public group membership

It doesn't seem to be supported to have triggers on the GroupMembership object. I want to update a field on the user object every time a user becomes part of certain public groups. Neither workflows ...
6
votes
1answer
3k views

GroupMember Types of a Public Group

How can we get the Type of a Group Member? Using getSObjectType() on the UserOrGroupId of GroupMember we get the Types - but they are only User or Group. List<GroupMember> members = [ SELECT ...
6
votes
1answer
3k views

Restrict Users to Find and Access a specific Case Record Type

I've created public groups and sharing rules in order to give access rights to the "Y" profile to A, B and C case record types. The user that has profile Y assigned cannot find, access and view "D" ...
6
votes
3answers
1k views

Delete Group using Apex

Trying to delete groups and queues within Apex code when executing an uninstall script, Salesforce raises me this error: DML operation DELETE not allowed on Group Although this is pretty clear error,...
6
votes
0answers
120 views

What's happening upon deletion of a Group record

I just ran a few consecutive tests of inserting and deleting a bunch of groups via the developer console (execute anonymous). Inserted 50 Group records: List <Group> groups = new List <...
5
votes
1answer
9k views

How to access all the public groups relatedto an user in apex

I am trying to find out all the public groups related to an user and display it on a vf page. Is this doable? Step 1: from Groupmember I get the group Id related to a user using list<groupmember&...
4
votes
2answers
1k views

How to find the groups a user is a part of, either directly or via another groups?

I had been wondering if there is a simple solution to find out the different groups that a user is a part of, either by direct membership or via a sub groups or even deep. We were facing a challenge ...
4
votes
1answer
793 views

How to add the Public group in Managed Package

How to add the public group in managed package and how to get the notification when delete or renamed the group name. Is there any possibilities in SFDC?
3
votes
1answer
8k views

how this Grant Access Using Hierarchies works?

How this Grant Access Using Hierarchies works. Please explain I am getting confused. Please explain me how this Grant Access Using Hierarchies works in OWD setting, groups etc. Does its use changes at ...
3
votes
2answers
1k views

Trigger on GroupMember object

I am trying to write a trigger to update user records as soon as they are added to a Group. So I decided to write a trigger on GroupMember but it says "SObject type does not allow triggers: ...
3
votes
1answer
1k views

Where are all the places that public groups can be used?

We're considering deleting some public groups, but we need to know all the different areas that the groups my "touch". So far, here's the list I've come up with: Sharing Rules Record Sharing Queues ...
3
votes
1answer
2k views

remove User from PublicGroup

I would like to automatically add and remove user from a public group. When they got assigned to a specific profile, they should be added to this group and when the profile has been changed to ...
3
votes
1answer
762 views

Email Template {!Receiving_User.Name}

I want to send email to all the users in a public group from initial approval action. How can I refer individual user's name in the email template? I tried {!Receiving_User.field_name} merge field in ...
2
votes
3answers
11k views

How do we get all the users who are part of public group of current logged in user?

I want get a list of all the users who are part of public group of the currently logged in user. From what i have read on the documentations, i should be able to pick these values from group and ...
2
votes
2answers
4k views

SOQL to find whether user's role is part of the public group

I have few public groups where I have only roles added. Is there any way to identify whether the current user is part of the group by taking current user's role and then comparing with the roles added ...
2
votes
2answers
11k views

Deployment of public groups and the associated users

Do i have to manually add the assigned users to a public group, after a group is migrated using the 'ant migration tool'? If i retrieve a public group using the below package.xml <?xml version="1....
2
votes
1answer
1k views

Getting 'FATAL_ERROR System.TypeException: DML operation INSERT not allowed on Group' on Apex Trigger

I am getting: "FATAL_ERROR|System.TypeException: DML operation INSERT not allowed on Group" error on an apex trigger (line 43) when I am logging in as any other user except System Admin. I am ...
2
votes
1answer
315 views

Custom Object Access via Public Groups

We have around 100 users who belong to 3 different profiles. We know it is possible to do it via permissions sets. But is it possible to provide permission via public groups or roles...what is best ...
2
votes
1answer
790 views

Access / identify Role GroupMembers in Apex

If I know the Role Id of the logged in the User. Can I determine which Groups the Role Id is associated with? When I query the GroupMember object - using something like this SELECT Id, Group.Type, ...
2
votes
1answer
1k views

How to control field visibility for Public group

I have a custom field on a custom object, that field needs to be editable for a public group and for rest of the users/profile this should be read only. How would I manage to achieve this.
2
votes
1answer
824 views

Access to account, contact and opportunity on lead conversion

I was practicing for Sales Cloud and came across the following dummy question: Joe is the record owner of a Lead. A Lead sharing rule has been defined so that leads owned by Joe are shared with ...
2
votes
1answer
830 views

Entity is not api accessible - Group Object

When installing my managed package into a test org I get the following error: System.NoAccessException: Entity is not api accessible This error is coming when accessing a map with the following ...
2
votes
1answer
123 views

When to use Groups and when Roles

We are building a solution using service cloud console which will be used by multiple customers. One org will have data in various objects like accounts, contacts, cases and some custom objects for ...
2
votes
2answers
1k views

Insufficient Privileges error on record detail in Partner Community

I've got Partner Community Users (not High Volume) and I want them to see a Contract record. I recognize there is no ContractShare and his visibility must be absorbed from the Account The Sharing ...
2
votes
1answer
133 views

In Apex, how do I know if my user can contribute content to a particular library?

Is there a way to discover if the current user can publish content to a specific Library using either Apex or Javascript? Use Case I have a shared library (DeveloperName = Shared_Forms) that many ...
2
votes
1answer
1k views

Add Public Groups as criteria to a Process Builder

I want my process builder to run just for set of users. I know that I can do it to run for certain profiles/ Roles but not all people in that profile/ roles need to run it. Is there a way to add '...
2
votes
1answer
513 views

Public Groups - Updating “Grant Access Using Hierarchies” Setting

Can anyone tell me if the DoesIncludeBosses field is the back end for the front end checkbox of Grant Access Using Hierarchies for Public Groups? Documentation doesn't connect the two together. I ...
2
votes
1answer
2k views

Apex or Visualforce way to get a list of queue a user is member of

I am looking for a way to get the list of all the queue a user is subscribe to. Now I know this question as already answered, using the GroupMember table, but the problem is a user can be a member of ...
2
votes
1answer
607 views

Create Public Group from an exception/does not contain/not equal to

I need to create a public group from 'Everyone' minus another smaller public group. The public group 'Everyone' is created from everyone under Role CEO and Internal Subordinates. The smaller group is ...
2
votes
1answer
204 views

Sharing Rules for Knowledge in Salesforce

Is it possible to create sharing rules for Knowledge? How can I share knowledge record with Role/Public Groups?
2
votes
0answers
228 views

No records returned when querying GroupMembers from Groups with type Role/Roles and Subordinates

I created a Public Group and added Roles as members. When I am querying the GroupMembers of that Group, I am getting the Ids for the Groups with Type Role. But when I am trying to query the Users/...
2
votes
0answers
380 views

Show custom VF pages in Public Knowledge Base frame

I need to show a custom Web-Form (Web-to-case) inside my Public Knowledge Base. But how can I show it in the "right-content" area of the screen (saying: Popular articles area on the picture). When ...
2
votes
0answers
270 views

Customer Service: Case Teams vs Groups

Scenario: there are n groups receiving calls in a Call Center: A, B, C, D. When a Case is received it is seen by all the members of the group. When one of them takes the case in charge, the other ...
2
votes
0answers
3k views

Assign Workflow Tasks to Queue or Public Group

How to assign the workflow task to group of users(Public group or Queue).I see this feature is not available in salesforce.Here are the idea exchange links for Queue and Public Group Is it possible ...
2
votes
1answer
717 views

How can I remove a user from public group 1 when s/he is added to public group 2?

I have a business requirement to show all records of a custom object to all users except for a small group called 'reviewers'. This requirement runs against the grain of standard SFDC sharing, so it's ...
1
vote
1answer
869 views

how to query portal roles added to the public group in SOQL

I have a public group and many Portal Roles added to that along with other users. How do I query all the portal roles added to this public group in SOQL ?
1
vote
1answer
661 views

cannot query on public group for community user

Hi have a controller with constructor running below query GroupMember groupMember = [SELECT Group.Name,GroupId, UserorGroupId FROM GroupMember ...
1
vote
2answers
386 views

Get ALL queue Users

I am trying to come up with a way to get ALL queue Users (not just the users who have a groupMember record with UserOrGroupId matching theirs) via apex. Queue membership can also be granted via User, ...
1
vote
1answer
413 views

Lookup Filter Question

I have a Lookup field on the Opportunity that looks up to the User called Cost Estimator. I would like to make it so the only users that can be selected are members of the Cost Estimator Public Group. ...
1
vote
1answer
1k views

get all members of public group EXCEPT where they are managers if a member

I am using the below code to get the members of a public group, plus all the indirect members (either members of a child group, or associated by their role membership) public class GetAllGroupMembers ...
1
vote
2answers
584 views

Disabling @mention of a public group by certain profiles only in Chatter Salesforce

Is it possible to disable @mention of a public group in any post or comment by regular users ? Only particular profiles should be able to @mention the public group name. Please suggest.
1
vote
1answer
152 views

Display Public groups & its associated users after selecting Group in drop down list in visualforce page?

Display Public Groups in drop down list & in this list select one public group, then press search button, on pressing search button display the all users in particular public group.
1
vote
1answer
383 views

Global variable for Group

Is there a global variable for referencing public groups Use case: I want to generate data on a field for few users belonging to a public group.I know using $profile I can do !IF( $Profile.Name = "...
1
vote
2answers
31 views

Do we need to set up Roles if we don't care about record ownership?

We have set our org up with Org Wide Defaults set to Private on a few objects. We open them up via Profiles and criteria-based Sharing Rules to Public Groups made up of users. Record ownership means ...
1
vote
1answer
4k views

Write a SOQL Query to extract queue memebers [closed]

How do I write a SOQL query for the developer console that extracts the names of the names of the queue members buried within a public group inside the queue?
1
vote
1answer
2k views

Adding Queue Members

What is the best possible way of adding users to Queues and Groups given that there are a number of Queues and Groups and a number of users belonging to them?
1
vote
0answers
21 views

Any ideas on getting the count of users a record is shared to

I'm building a LWC that gives a metric for 'sentiment' but counting the occurrences of used topics in the host record pages feed. It would be nice to be able to have a metric like "75% of Users ...
1
vote
1answer
196 views

Unable to allow external customers in chatter groups

I am trying to create groups in Salesforce and allow external customers to join them in order to discuss details about cases and maintain privacy by creating a group for each customer. The ...
1
vote
1answer
213 views

Can't navigate to a Group record via force:navigateToSObject

I'm running into an issue while trying to open a Group record page via force:navigateToSObject in Lightning - When the event is fired, the page navigates to a page stating 'You can't view this item in ...
1
vote
1answer
939 views

How to share Chatter File (ContentDocument) with set of Users

As per salesforce documentation, record can be created in ContentDocumentLink https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdocumentlink.htm LinkedEntityId ...