0

I am trying to assign customized permissions to users/groups of SharePoint via the REST API. But from Microsft Graph we have only API to assign folder level permissions (read, write, full control). After seeing some links found out a NuGet package called SharePoint itself. So if there is any other way to achieve the above goal please do share it with me. I have shared a screenshot for reference, where test111 is a Domain grouenter image description herep in SharePoint and test is a customized permission level I created in Sharepoint

0

Generally, REST API is used for Front-end, for your requirement, it is better to use CSOM code to assign users/groups permissions in your .Net Core solution.

To connect the CSOM code in .Net Core, you need to use modern authentication (SharePointOnlineCredentials class is not supported for .Net Core). An official article for your reference.

Use the CSOM Library in your ASP.NET Core apps

For granting permission to users/groups
SharePoint Online: Grant Site Permissions to User using CSOM.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.