![](https://www.infallibletechie.com/wp-content/uploads/2023/11/Current-User-Id-check-in-Salesforce-Validation-Rule-1024x576.jpg)
$User.Id can be used in Salesforce Validation Rules for the current running user ID.
Sample Validation Rule:
AND(
ISNEW(),
$User.Id != Account.OwnerId
)
![](https://www.infallibletechie.com/wp-content/uploads/2023/11/Salesforce-Validation-Rule-Current-User-id.png)
Output:
![](https://www.infallibletechie.com/wp-content/uploads/2023/11/Current-User-Id-check-in-Salesforce-Validation-Rule.png)
$User.Id can be used in Salesforce Validation Rules for the current running user ID.
Sample Validation Rule:
AND(
ISNEW(),
$User.Id != Account.OwnerId
)
Output: