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
dev_forcedev_force 

Comparing two users by position in role hierarchy

Are there any functions that can be used in validation rules or apex triggers/classes that can be used to compare two roles and return whether one is higher in the role hierarchy than the other?

 

 

Thanks.

SanchSanch

Hi there,

 

I am trying exactly the same thing. Could you share how you resolved it? Thank you very much in advance.

 

Sanch.