ASP.NET core MVC web application which integrate with SharePoint

john john 1,021 Reputation points
2022-12-08T14:14:28.737+00:00

We have a SharePoint online site collection. and we want to develop an ASP.NET Core MVC web application which integrate with SharePoint online lists and libraries.
The asp.net core MVC web application will authenticate the users using Office 365 credentials. but we have the following questions:-

1) Can we define some parts of the integration to run using the login user while other to be done with elevated privileges ?

2) i think we can integrate either using REST API or using CSOM ? so what are the main differences between those 2 approves?

Thanks

Microsoft 365 and Office SharePoint For business Windows
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2022-12-09T02:56:12.197+00:00

    Hi @john john
    You can refer to following steps to configure elevated privileges
    https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/elevated-privileges-in-sharepoint-add-ins

    For the difference between rest api and CSOM

    Developers can perform Create, Read, Update, and Delete (CRUD) operations from their SharePoint Add-ins, solutions, and client applications, using REST web technologies and standard Open Data Protocol (OData) syntax. Here is a document for more details about rest api
    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints

    The CSOM internally uses the PSI services, the CSOM has many of the same functional limitations that the PSI has. In addition to limitations of the PSI, such as having no access to data in local projects (.mpp files), the CSOM does not include administrative functionality that Project Web App typically handles. For example, creating custom security groups can be handled in the Site Settings - Permissions page for Project Web App. See the What the CSOM does and does not do section in the document
    https://learn.microsoft.com/en-us/office/client-developer/project/what-the-csom-does-and-does-not-do


    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.