function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pooja GPooja G 

Custom Lookup field to user object

When the custom lookup field is created looking to user object, the search will show only active users or inactive & freez users as well ?
Dhanya NDhanya N
Hi Pooja,

It will show only active users.
Check this link for more detail : https://success.salesforce.com/answers?id=90630000000guwnAAA

Thanks,
Dhanya
Abhilash Mishra 13Abhilash Mishra 13
Hi pooja,
 
Not sure what you are asking? but if you looking for a way to filter user in lookup search
You can use Lookup filter when creating the user lookup.

Let me know if you need more help.

Please like if this helps and mark best answer if this solves the issue 
Regards
Abhilash Mishra
Rakesh51Rakesh51
It will only dispaly Active user, if you wnat to display Active, inactive and Freezed users then you have to use Apex and Visualforce page
Pooja GPooja G
Thankyou. And will it also show freez users ?? If yes . how can we avoid showing up freeze users .
Rakesh51Rakesh51
Create a Visualforce page and in your controller use logic to filter out Frezzed user.
Pooja GPooja G
Hi Rakesh
Is it possible to filter Freez users using validation rules ?
Rakesh51Rakesh51
No, you can't .....without Apex trigger it won't b epossibe

Because UserLogin object represents the settings that affect a user’s ability to log into an organization