Questions tagged [role-hierarchy]

The tag has no usage guidance, but it has a tag wiki.

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

Assigning Users or Role to queue via apex code

Is there any way I can assign a particular user/particular Role to a Queue via Apex code. I am creating that queue via apex code only. So to automate the process I want to assign users/roles ...
6
votes
3answers
3k views

Find users under a node in role hierarchy

We have a multi level role hierarchy. I need to find all the users directly under a role and its sub-roles in a role hierarchy. How can this be achieved efficiently using SOQL or Apex or any other way ...
2
votes
1answer
62 views

Salesforce - user trigger not invoked when user role changes

There are two ways to change user role. One is from user detail page, which invoke user trigger. I am facing issue where if user role is changed from ROLE hierarchy screen, then user trigger is not ...
6
votes
1answer
2k views

Merging two organisations and using Divisions: Is there a catch?

I'm looking into merging two different SF organisations due to licensing restrictions with a third party application that can only integrate with a single org. This orgs serve two different lines of ...
6
votes
3answers
5k views

How would sharing rule work in the below scenario

Suppose i create a new object called "XXXX". Now profile called "AAAA" doesn't have read, create, edit permission on it. Q1: What would happen if I create a record of object "XXX" and share it with ...
4
votes
3answers
2k views

Can I grant different field-level security based on record ownership?

I have some fields on an object that contain private information. While the object itself should be visible to an entire group of users, I would like tighter control over those specific fields: I ...
1
vote
2answers
1k views

Restricting record level access in role hierarchy

If i set the OWD for Account as private and if i create a public group and add some users into that and create a sharing rule for giving read and write access to that public group then managers of the ...