Custom Web part or functionality to Get SharePoint site site information when enter username

adil 1,431 Reputation points
2024-07-17T11:59:15.9766667+00:00

Hi,

I want to Custom Web part or functionality to Get SharePoint site site information when enter given username ,i want to create a page in root site collection and i want to add check permission functionally and it retrieve Site information

here i have Root Site Collection and it has many Sites & Sub Sites and each site has Unique Permissions

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,241 Reputation points Microsoft External Staff
    2024-07-18T02:49:30.0433333+00:00

    Hi @adil ,

    Per my knowledge, we can filter SharePoint items by logged in user, but we can't get the information based on the username in Sharepoint.

    Also, due to permissions issues as well as parameter issues, we were not able to accomplish this through the graph api or powershell.

    Your understanding and patience will be highly appreciated! Hope you have a good day and keep safe!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.