Forum Discussion
User Information List from SP
- 3 years ago
You are correct that the "User Information List" in SharePoint, which has the file extension "_catalogs/users/detail.aspx," cannot be directly shared with users or accessed like a regular list. The "User Information List" is a system list that stores user-related information for the SharePoint site.
Instead of sharing the "User Information List" directly, you can utilize the SharePoint API or other methods to retrieve the required user information and incorporate it into your custom solution or application. The SharePoint API allows you to programmatically access user information from the "User Information List" or any other list in SharePoint.
Here's a overview of how you can retrieve user information using the SharePoint API:
- Obtain the user's ID or username from your "User Access" list.
- Use the SharePoint API, such as the SharePoint REST API or Microsoft Graph API, to query the "User Information List" using the user's ID or username.
- Retrieve the desired user information, such as the picture URL, from the API response.
- Display the user's picture URL in your dashboard or application using the retrieved data.
Could you elaborate on how I might pull all portraits on my list using GRAPH API? I feel like It would be a huge amount of work involving a blank query.
this thread should help.
https://stackoverflow.com/questions/52369708/getting-image-from-sharepoint-post-with-microsoft-graph
https://learn.microsoft.com/en-us/answers/questions/926543/how-to-get-sharepoint-images
https://www.linkedin.com/pulse/how-upload-file-via-graph-api-sharepoint-satheesh-kumar/