Please help :)
I have 5 Super Users around the world and they have access to manage users, so that they can reset passwords and MFA. However, this also gives them the ability to add and reactivate users.
I need to prevent them from adding and or reactivating users as there is now a charge back for the licenses per user. I've tried the validation rule below, however that then blocks my access from reactivating licenses
Error Condition Formula | UserRole.Name <> 'System Adminstrator' && ISCHANGED( IsActive ) && PRIORVALUE(IsActive ) = FALSE
Is it the code that is wrong, or should I just enable it so that they cannot do anything, but when I need to set up that I deactivate the validation rule?
If anyone has any suggestions I would be very grateful, thank you for reading :)
Try this
AND(
$Profile.Name <> 'System Adminstrator',
OR(
ISNEW(),
AND(
ISCHANGED( IsActive ),
PRIORVALUE(IsActive ) = FALSE
)
)
)