Hello,
I would like to know the Recommended Options between SharePoint Online CSOM libraries and Microsoft Graph API , for Uploading a Document to SharePoint Online Library .(With Modern Authentication)
Newer version of our application uses .NET Core (6.0) and Older version uses .NET Framework 4.72.
Currently we use SharePoint Online CSOM libraries and the Authentication is based on the SharePoint App-Only Principal with Tenant permissions.
Please Refer to https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
The Permission XML should be as follows - giving full control for the Tenant.
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope=”http://sharepoint/content/tenant” Right="FullControl" />
</AppPermissionRequests>
Our Customers do not want to give FullControl permission to Scope = tenant.
Is the Microsoft Graph API recommended for this Case ? Where the Authentication is based on the App registered in the Azure AD (Microsoft Entra admin center)
We want to use the same solution for both the versions of our application (.NET Core 6.0 and .NET Framework 4.72.)
We will be uploading Documents to SharePoint Library with different Search data which will be associated with the Uploaded Document (Can be used for Searching / Filtering Documents).
We are also creating or Updating SharePoint List from the .NET Core Application. (or .NET Framework 4.72 application) .
Please advice.
Thanks