function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Akshay MenseAkshay Mense 

how to get all the users who are only at the bottom of role hierarchy in apex

Hi, I have a requirement to query all the users which are at the bottom of my the role hierarchy not one down just bottom. so for example if i am at the DM level i should get all the users which are sales rep level not at manager level. in APEX LWC controller
ANUTEJANUTEJ (Salesforce Developers) 
Hi Akshay,

>> https://developer.salesforce.com/forums/?id=906F0000000BWacIAG

Can you try checking the above link that has a similar use case.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.