Question:
As a non-admin user, why is the 'Active' checkbox visible from the User List but not the User Detail page?
Answer:
This is expected behavior. Salesforce does not have any way to set field-level security for the IsActive field on the User object and it is not available to add to a page layout.
The 'Active' checkbox will only display on the User Detail page to users that have the:
- Salesforce license;
- System Administrator profile; and
- Manage Users permission.
Workaround:
Create a custom formula field on the User object to display whether the user is active or inactive.
- Navigate to Setup --> Object Manager --> User --> Fields & Relationships.
- Select New from the top right hand corner.
- Select Data Type of Formula then click Next.
- Add a Field Label and the Field Name will automatically populate based on this input. Select Formula Return Type of Text and click Next.
- In the test (Text) = field, input the following formula:
if(IsActive,"Active","InActive")
- Select Check Syntax to ensure the syntax is valid, then enter a Description (optional) and click Next.
- Determine appropriate Field-level Security for Profiles, then click Next.
- Click Save.
- Clear Veeva Cache.
Related Documentation:
CRM Help Documentation: Custom Fields