In this article, we are going to learn, How to get the user permission on the site using csom or how to get the user permission programmatically, to get the permission of the user on a particular site we use GetUserEffectivePermissions() method in csom. In the SharePoint, user requires permission to perform any operation, when we work with provider-hosted add-ins and in some scenarios, we need to check the permission of user we use the GetUserEffectivePermissions() method and by passing the user name we get its effective permission on the site. In this example, We have created a console application to check whether the user have edit person or not on site. Pass the context of the site and email of the user into a method to check the permission of the user on the site. You must ensure users on the web before checking permission. using System; using System.Security; using Microsoft.SharePoint.Client; namespace PracticeC...
Techrobbers provides information related to Modern SharePoint, SharePoint Online, SharePoint Framework, Power Automate, PowerShell, PnP, Microsoft Teams and other things which are related to Microsoft 365.