You need to sign in to do that
Don't have an account?
Akshay 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
>> 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.