adspace


How to get the user id of all the currently logged in users using apex code? : salesforce crm

Answer Posted / Jugendra Singh

In Salesforce, you cannot directly retrieve the User IDs of all currently logged-in users using Apex. However, you can use the `UserInfo` class to get the ID of the currently logged-in user. If you need to find all active users in your org, you should consider querying the `User` object or using Salesforce's REST API.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is workflow rule and workflow actions? : salesforce workflows and approval process

574


What were you doing before sfdc development?

522