Questions tagged [role-hierarchy]

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

0
votes
1answer
25 views

All users in one role?

tldr: I'd like to just put every user in the same role, but I'm not sure what consequences that'll have besides messing up role-based sharing, which we don't really use. What else could be impacted? ...
1
vote
1answer
25 views

How is user gaining ownership of an Account?

Upon changing the case access of a child role from "can edit all cases associated with accounts that they own" to "cannot access cases that they do not own" a user can no longer access a case. However,...
1
vote
1answer
27 views

Role hierarchy not having Partner Manager and Partner Executive Role

I created a user by convert lead to contact and then enabling the partner account and enabling the partner user. I was able to create the user but when I edit the user to select a different role I ...
0
votes
0answers
30 views

Account Record Access Issue

I have a user with custom profile and role. The account is private in OWD and Read, Create, Edit access in profile. And we also have sharing rules on account where if records owner is in group, the ...
-5
votes
1answer
25 views

how works Role Hierarchy in salesforce [closed]

If I have three users A,B,C and A is superior then B then C.I created one custom object School__c.its owd is private.The user C has read/write permission.All are in same profile.role is different like ...
0
votes
0answers
13 views

Can “Delegated Administration” be used to allow users to edit other user's tasks?

I would like to allow a group of users (same Role Hierarchy) to edit each other's tasks. I changed the "Activity" sharing rule to "Controlled by Parent". Am I able to use "Delegated Administration" to ...
0
votes
0answers
19 views

Show Me by Role in Report Filter giving inaccurate results

I have a report in Opportunity, when clearing this filter gives me all the opportunity reports (e.g. 500 Reports), but when selecting a specific Role (example: the Topmost role in the role hierarchy - ...
0
votes
0answers
6 views

Clarification regarding a case study for “Complex Sales Realignment”

I came across the following article Case Study In key observation, the article states "Portal Roles – when the owner of a portal account is changed, the roles that provide access to the portal ...
0
votes
3answers
31 views

Salesforce without a Role Hierarchy

I know that this questions goes against every single best practice in Salesforce but I'm working on a project where all users should see all records in the org. I'm going to lock down objects and ...
0
votes
1answer
42 views

Role hierarchy Assignment Automation

I have a requirement to automate the role hierarchy assignment process to Users present in Salesforce. It will be based on field value recorded on User record with some condition. For example:- If ...
0
votes
1answer
180 views

Reports automatically and forcefully filtered by owner role (Winter 19)

Since Winter 19 release all of our reports are now being filtered by owner role automatically. We can't find a way to clear the filter, and we can't find an entry in the release notes. A Salesforce ...
0
votes
2answers
31 views

Is there a way to delete multiple roles at one go or the whole Role Hierarchy? (with or without inactive users)

Right now I have to delete 1 by 1 and that is really time consuming.
1
vote
1answer
62 views

Winter'19 Release: “Opportunities: Retain Edit Rights for Previous Opportunity Owners”

This is a useful feature in some situations: https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_sales_features_core_oppty_sfx.htm But this can literally double the share table ...
1
vote
0answers
131 views

Set Category Group Visibility Settings for Role using Apex

The question is can I set Category Group Visibility Settings for Role using Apex code somehow? My logic creates Data Categories (I'm using Metadata Api for it) and User Roles (I'm using UserRole ...
3
votes
1answer
48 views

Insufficient Access Updating Role DeveloperName via Apex

A little background, for some reason my sandbox orgs are adding an "A" or "D" to role developer names when queried or when added to changesets. SF is investigating why this is happening. Regardless, ...
0
votes
2answers
165 views

Organisation wide role Hierarchy restructuring

Our organization has gone through restructuring recently, so we need to rename and restructure role hierarchy. What is the best practice for renaming role and restructure hierarchy and also what are ...
1
vote
2answers
478 views

How to restrict record access from users who are on same level in role hierarchy

I have role hierarchy defined as follow, A {CEO Role} B C {Principle Role} D E {Manager Role} My OWD is Private, but still, - B can see E's Data - C can See D's Data. How can I restrict ...
1
vote
1answer
176 views

Why is user having same role/profile able to post in broadcast only Chatter group when others can not?

I have created a private, broadcast Chatter group. I have a Visual Flow, triggered by a Process Builder process on a record change that will post a message to the Chatter group. Based on user reports ...
2
votes
1answer
234 views

Changing Lead Ownership for Siblings in Role Hierarchy

I have 2 roles in my org: A & B. They users assigned to the role A have permissions to 'Create/View/Edit the Lead object as well as permission to 'Transfer Leads' and 'Transfer Records'. A and B ...
2
votes
1answer
865 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
0answers
34 views

Hierarchy sanpshot

I have a tricky situation. I have more than 350 sales people in my org and I have 4 levels in my hierarchy and hierarchy changes monthly. In case of new hire, it sometimes changes on daily basis as ...
0
votes
1answer
562 views

Role hierarchy with users reporting to different managers

I am trying to create a role hierarchy according to this requirement: We have three roles: Sales Manager, Executive Manager and Sales Rep Sales Manager and Executive Manager are at the same level. ...
2
votes
1answer
47 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 ...
0
votes
1answer
985 views

Customer community user's role hierarchy based on account hierarchy

We have setup a community using customer community plus user licenses. There is a requirement to setup data visibility according to account hierarchy. I have following type of account hierarchy - -...
0
votes
1answer
289 views

How do I share a User's records with its subordinates?

I have a use case where the default sharing for an Object is set to "Private". When a user creates a new record, however, they want their subordinates to be able to work with it as well. It's a ...
0
votes
1answer
108 views

Apex class to test data access for each role

We are redesigning our role hierarchy and add new roles. We are thinking of testing this automatically. We are thinking of building an apex class which can login as a user in all roles and do a soql ...
2
votes
2answers
216 views

Does Pardot respect the Salesforce Role Hierarchy?

We have a strict sharing model in Salesforce whereby EMEA can't see APAC data and vice-versa. We've achieved this through the Salesforce Role Hierarchy. Is this preserved in Pardot too, i.e., if a ...
2
votes
0answers
52 views

Grant Access Hierarchy

I have a query on Grant access hierarchy and sharing rule. I have in my system Accounts being shared to Users through Account Share , Group and Territory. Now, I have A1 account shared to T1 ...
5
votes
1answer
436 views

Role Hierarchy and User hierarchy design for reporting purpose

I am looking for best possible design for reporting purpose. In our Salesforce Org there are Role hierarchies. OWD of Case is Public Read/Only Contact Center Rep Role --> Contact Center Lead Role -->...
1
vote
1answer
49 views

Role Hierarchies

Pre-requisite: Account and Contact are in Master-Detail relationship. Both Account and Contact have two record types each, say Acc1 and Acc2 for Account and Con1 and Con2 for Contact. In the sharing ...
2
votes
2answers
920 views

Need a Help on Role Hierarchy.Restricts Records based on User's Manager

Role Hierarchy: User A is the Manager of User C and User B is the manager of User D. Now as per role hierarchy,Records created by User C & User D can be accessible to User A & User B.Although ...
0
votes
1answer
263 views

Metadata API Accessing parentRole for a Role

I'm trying to add roles to Stash for my company. I created a package.xml (listed below) to get the roles. According to Metadata API Developer Guide: Role, there is a parentRole field which I'm not ...
0
votes
0answers
46 views

control the visibility of user's records to other mangers

I would like to control the visibility of user's records to other mangers. Example, Lead and opportunity records should be visible only to the user's manager. and should not be visible to all ...
0
votes
1answer
90 views

Difference between Profile & Sharing Settings?

We have a flat organizational Role Hierarchy. One Manager (Profile 1) and two Staff (Profile 2) for both South and West. Both of these managers report up to the Regional Manager. We have built loads ...
1
vote
1answer
318 views

Hide Portal/Community Roles in Report Hierarchy

Is it possible to not show Portal/Community Roles in Role Hierarchy when doing Show Hierarchy? I could not find any settings for this nor any confirmation that this can't be done.
2
votes
1answer
500 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 ...
0
votes
1answer
167 views

Add Role to Permission Set for User to see Report

I have a user in my org that needs to view a report. The user used to see the report before he changed role - he is still allowed to see the report but can't as the report is 'role hierarchy' based... ...
1
vote
1answer
86 views

Use Case: Sharing For Record Visibility (no Roles)

Does anyone have any advice on my thoughts that we not use (barely) any Roles, and share records solely using Sharing Rules? Originally we looked at having each Division of the company in a Role, ...
0
votes
1answer
1k views

Can't change owner of a record belonging to a role above me in the hierarchy

I am wondering if we have misused the Role Hierarchy...I have three roles like: Manager Team Leader Team Member These (and others) all belong (via their role) to the same Public Group and the same ...
13
votes
1answer
2k views

Role-based sharing rules for partner community users

When dealing with role-based record sharing in a Private sharing model, I often run into a scenario where managers should see their peers' records while their subordinates should not. It's simple ...
1
vote
1answer
369 views

How to unit test a class returning all subordinate roles for a given role?

I have an apex class which returns all subordinate roles for a given Role (all roles are non-portal). The class is similar to this one and returns a set of IDs for all roles below the given role. For ...
-2
votes
1answer
136 views

How do I keep data private using the role hierarchy and org-wide defaults? [closed]

I have one org and three users in it. 1st user is owner with role owner. and 2 user is manger with same role manager. Now I want to keep to manger data private to each other so they only can see ...
0
votes
0answers
48 views

Comunity user Case Read/Edit by accounts - parent account(Portal) Contacts

I have an account, and its contacts(Community Users) have a parent account(Partner Account), and its Contacts(Partner User). I want when a Community User creates a case it should be Read/Edit by its ...
0
votes
1answer
26 views

Custom data segmentation requirement

I have a requirement where there are federal and commercial Orders. Federal Orders should only be shared with Federally certified users and commercial users should not see these orders. Federal users ...
2
votes
1answer
223 views

Query related to Manual Sharing and Sharing Button when OWD & Role Hierarchy is used

I just setup a new DEV ORG and setup below scenario for a testing The Accounts OWD is set as Private I have 3 users User_A (Admin Profile), User_B (Standard Platform) & User_C (Standard Platform) ...
0
votes
1answer
195 views

How to send chatter message in apex from a user lower in role hierarchy to a user who is higher in role hierarchy

I'm trying to send the message to the users in my organisation on chatter from Apex class. Sample user hierarchy where I'm trying to send the message is given below: User 1 |----user 2 ...
0
votes
1answer
42 views

Limit the view for Role so Only see Accounts in their branch of the hierarchy

Can I limit the View for ROLE APAC so that they only see APAC accounts and not AMER.
1
vote
1answer
222 views

Unable to Submit for Approval

I have a custom object K__c with OWD setting Private and with Grant Access Using Hierarchies set to true. There is a record k1 with owner u1. u1 has role r1. Manager of u1 is u2. r1 reports to ...
1
vote
2answers
583 views

Same Role with Different Profile

If I have to Sales Associates with same 'Role' but different 'Profile' will they be able to see their opportunities? If they have same role and same profile, will they be able to see each others ...
1
vote
1answer
645 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 ...