Activity Forums Salesforce® Discussions Do you know how to get the User Id of all logged-in users with Apex code?

  • Shweta

    Member
    July 14, 2020 at 3:10 pm

    You can get logged-in user id by using this,
    User users = [select id, name from user where id =: UserInfo.getUserId()];

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos