Hey there! In this blog, we are going to see how can we fetch User Names and User Emails using a REST API call that displays particular user information.
In SharePoint, you can access the User Information List to get basic data about a user.
This list is hidden and there’s no direct link provided by Microsoft to access the list, which I will discuss later in this blog.
To get the user Name and Email, we are going to use the endpoint,
_spPageContextInfo.webAbsoluteUrl + “/_api/web/getuserbyid(” + UserID + “)”;
JavaScript Code


REST API to Get all properties of the current user,
REST API to Get all properties of Specific User,
For more information refer the URL below,
  • https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-rest-reference/dn790354(v=office.15)?redirectedfrom=MSDN#bk_PeopleManagerGetPropertiesFor
User Information List
  1. The User Information List is hidden which resides only in Root Site Collection and contains data about the user added as part of their Active Directory (AD) profile configuration, users don’t have a direct link to access it.
  2. Whenever you grant access to the user on the SharePoint site/list or the other resource, the user automatically gets added to the present list.
  3. If any AD Group is given permission on-site, the group also will be added to the User Information List, and also the Group-users are going to be added to the list.
  4. You can access the User Information list as long as you’re an Admin of the location.
To access User Information List
Get detailed information for users – https://SiteURL/_catalogs/users/detail.aspx
Get basic information for users – https://SiteURL/_catalogs/users/simple.aspx
Access SharePoint User Information List Using REST API