How can you get the current users id using javascript? Can you do this any JS file or does it need to be added at a certain point?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
My favorite is to use the SPServices jQuery library, specifically the GetCurrentuser operation. |
|||
|
|
|
Since you are working on 2010 version you can use Client Object Model to get current user (and some other cool stuff). Here is link to simple example: Code:
|
|||
|
|