Skip to main content
How can I get the current Salesforce User ID in an Apex class?

Any help is appreciated!

Chris

7 answers
  1. Aug 7, 2008, 3:16 PM
    You can get the current user id like this.

    UserInfo.getUserId() which returns the user id of the current user.

0/9000