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



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

Answer / 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

More Salesforce Interview Questions

How many active assignment rules can you have in a lead/ case? : salesforce crm

1 Answers  


What are the Best Practices of Creating Contact Sharing Rules?

1 Answers  


What are the matrix and trend report?

1 Answers  


If we want to upload data through DataLoader, what the changes to be done?

1 Answers   Accenture,


What is the difference between public and global class in apex?

1 Answers  


What is the purpose or use of @testvisible?

1 Answers  


Why salesforce is used?

1 Answers  


What are dynamic dashboards? Can dynamic dashboards be scheduled? : salesforce crm

1 Answers  


Difference between chatter api and connect api in salesforce?

1 Answers  


Explain Class Access Modifiers in salesforce?

1 Answers  


What are the batch Apex governor limits?

1 Answers  


How Salesforce deploys sales tracking?

1 Answers  


Categories