Many time we have some requirement in Approval Process field Criteria, Workflow Entry Criteria and Validation rules where some checks are required specific to users.
- Take Some workflow action(Email Alert/Field Update/etc) if owner of a record is "User A".
- Only enter in approval process if Owner of a record is "User A" or "User B".
- Validation rule to allow only two users ("User A" and "User B") to update record.
Above conditions are rare scenarios and users are not part of any specific groups, profiles, roles.
So, we need to use hard coded "user name", "user alias" of these users into criteria.
My question is:
Is it ok to hard code user 's "User Name" or "User Alias" in Approval Process/Workflow Entry criteria and Validation rules, where we can't achieve it by using a public group/profile/role?
I think there is nothing wrong because this requirement are for individual user(s). Also, admin can easily change the users (filter criteria) in future without any deployment.