none
SharePoint Current logged user name in list RRS feed

  • Question

  • Hi

      In SharePoint, I have a requirement to capture the current logged user in SharePoint List. Can you please help to find?

    Monday, February 20, 2017 4:35 PM

Answers

  • Hello,

    You can use the SPServices for same and get the current Logged in user name ot other properties.

    Please refer to below link:

    SPServices.SPGetCurrentUser

    Thanks,

    Viral.

    Monday, February 20, 2017 4:45 PM
  • If you want the the current logged in user in the SharePoint list fields use [Me] in the formulas. If you looking for some customization using JavaScript then use the _spPageContextInfo object to get the current logged in user.

    _spPageContextInfo.userLoginName

    _spPageContextInfo.userID


    ---
    Rajesh
    rjesh.com| @rjesh
    You don't need to buy me a beer, if helpful just smile, vote, and mark it as answer.

    • Proposed as answer by Giridharan_G Monday, February 20, 2017 9:38 PM
    • Marked as answer by Sjoukje ZaalMVP Thursday, March 16, 2017 9:44 AM
    Monday, February 20, 2017 6:59 PM

All replies

  • Hello,

    You can use the SPServices for same and get the current Logged in user name ot other properties.

    Please refer to below link:

    SPServices.SPGetCurrentUser

    Thanks,

    Viral.

    Monday, February 20, 2017 4:45 PM
  • If you want the the current logged in user in the SharePoint list fields use [Me] in the formulas. If you looking for some customization using JavaScript then use the _spPageContextInfo object to get the current logged in user.

    _spPageContextInfo.userLoginName

    _spPageContextInfo.userID


    ---
    Rajesh
    rjesh.com| @rjesh
    You don't need to buy me a beer, if helpful just smile, vote, and mark it as answer.

    • Proposed as answer by Giridharan_G Monday, February 20, 2017 9:38 PM
    • Marked as answer by Sjoukje ZaalMVP Thursday, March 16, 2017 9:44 AM
    Monday, February 20, 2017 6:59 PM