
AND(
ISCHANGED(OwnerId),
PRIORVALUE(OwnerId) <> $User.Id,
$Profile.Name <> "System Administrator",
$Profile.Name <> "Integration"
)
8 answers
I don't think you can include role hierarchy inside a validation rule. I would suggest you setup your OWD/Sharing settings accordingly to open up the right access in the hierarchy.