Is it possible to create custom web parts in SharePoint in Microsoft 365 (SharePoint Online)

Jarrett Trapani 0 Reputation points
2025-01-09T16:23:15.6+00:00

I am trying to develop custom web parts for our SharePoint instance our version is SharePoint in Microsoft 365 formally SharePoint Online. I only can find documents and templates in visual studio for versions 2019 and 2016... I am just looking for guidance and what steps I need to take to develop and deploy custom webpart in SharePoint in Microsoft 365.

More specifically the exact web part I am trying to make is a basically a banner that will display user information for our end users Active Directory account. I am not sure if this is even possible but the flow would be, user goes to a page, the web part identifies the logged in user, their password information is fetched from our internal api application, then that information is displayed in the custom web part.

Since we are using SharePoint online I am not sure if there is a possible connection between our SharePoint online instance to internal applications since we do not host the SharePoint instance on prem.

Please let me know if this is even possible or if you have any other suggestions, I have read these documents and I keep seeing "static" in various locations which makes me believe this type of dynamic data fetching is not possible... might have to use power apps and a sharepoint list.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,191 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 27,111 Reputation points Microsoft Vendor
    2025-01-10T02:54:58.3266667+00:00

    Hi @Jarrett Trapani ,

    You can use the SharePoint Framework (SPFx) to build client-side web parts. SPFx allows you to use modern JavaScript frameworks and tools to create web parts that run in the context of a SharePoint page.For fetching user information from Active Directory and displaying it in a web part, you can use the Microsoft Graph API. This API allows you to access various Microsoft 365 services, including user information from Azure Active Directory.

    Note: For security, the password itself is never returned in the object and the password property is always null.

    No matter what method is used, there is no way to get the user's password.


    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 Answers by the question author, which helps users to know the answer solved the author's problem.