Skip to main content
I only want 2 specific users to be able to edit contact records that are associated with a particular account. Currently, all users can edit contacts but I want to make sure that only for one particular account, they cant edit those associated contacts. This doesnt seem to be working and any advice would be appreciated. 

 

AND(Account.Id = "001F000001DhLfS", 

 

OR( 

 

NOT( $User.Id = "005F0000003afcY"), 

 

NOT( $User.Id = "0052A000009Bv9x")))
4 answers
  1. Feb 1, 2018, 10:57 PM
    Hi Shauna,

     

    Please try the below

    AND(

    AccountId = "001F000001DhLfS",

    $User.Id <> "005F0000003afcY",

    $User.Id <> "0052A000009Bv9x"

    )

    As a best practice avoid hardcoding the Id's and use something like Username or User alias as below

    AND(

    AccountId = "001F000001DhLfS",

    $User.Username <> "Insert Username of 1 user",

    $User.Username <> "Insert Username of 2 user"

    )

0/9000