You need to sign in to do that
Don't have an account?
developer_force
Retreiving all users using apex code
Hi,
Help needed in retreiving all the users in salesforce using Apex code.
Thanks
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi,
Help needed in retreiving all the users in salesforce using Apex code.
Thanks
List<User> allUsers;
allUsers = [SELECT Id, Name from User];
Hi,
If you want to retrieve all active users then you can utilize the user = "inactive" boolean property of User in your query.
List<User> usrlist = [select id, name, isActive from User where isactive = true];
else you want to access all user then you can exlude the filter on “isactive” property.
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.