I am querying for a particular user in my class(without sharing),it is returning null sometimes.User is available and he is the system administrator.
What might be the reason ? Am i missing anything ?
Here is my Query [Select id from user where FirstName = 'Vipul' and lastname = 'Sama' and profile.name = 'System Administrator' limit 1].
Thanks very much.