how to restrict user to change Account owner of records not owned by them
Hi,
We have a requirement that user should not change owner of Account not owned by them. I am trying below condition in field validation & workflow,
(PRE(UserValue('{User Sign In Id}')) = PRE(UserValue('{User Id}'))) AND PRE(UserValue('{User Id}')) <> UserValue('{User Id}')
Now i do not see any issue with the condition but its giving me error as below 'Field name 'User Id' is invalid'.
I have tried with UserId & UserLoginId as well but got same error.
Could you please let me know what could be the wrong here.
Thanks