SharePoint Online: Grant Permission to List Item using PowerShell

Permissions are hierarchical in SharePoint from the Top Site collection till the List Item level. When items are created in a list or library, they inherit the permissions of that list or library. However, This inheritance can be broken and permissions can be applied directly to the items. To set unique permissions…

Read more

SharePoint Online: Find All Lists with Unique Permissions using PowerShell

Requirement: Get All Lists and Libraries with Unique Permissions using PowerShell How to Check if a list is using Unique permissions or inheriting permissions from the parent? To get if list or library has unique permissions, follow these steps: Navigate to the list and then go to List or Library Settings. On…

Read more

SharePoint Online: Remove User or Group from Folder Permissions using PowerShell

Requirement: Remove user from folder permissions in SharePoint Online. How to Remove user from folder permissions in SharePoint Online? How to restrict access to folder in SharePoint Online? To remove a user or group from SharePoint Online Folder’s permissions, follow these steps: Navigate to your SharePoint Online list or library where the…

Read more

How to Make a SharePoint List or Library to Read Only Mode using PowerShell?

Requirement: Set SharePoint list or document library to read only mode. How to make SharePoint List to Read Only? There is no direct way to set the SharePoint list to read-only! The read-only mode can be set only on SharePoint site collections (How to Make a Site Collection Read-Only) or on content…

Read more

SharePoint Online: Find All Sites with Unique Permissions using PowerShell

Requirement: Find All SharePoint Online Sites with Unique Permissions using PowerShell How to check if a site (web) is using Unique permissions or inheriting permissions from the parent? To get if a site has broken permissions, follow these steps: Navigate to the Site and then go to Site Settings >> Site Permissions…

Read more

SharePoint Online: Get All Permission Levels using PowerShell

Requirement: Get permission levels in SharePoint Online site using PowerShell. SharePoint Online: PowerShell to Get Permission Levels Permission levels are sets of base permissions grouped together to provide specific rights in the site. This script returns all permission level names including out-of-the-box permission levels such as “Full Control” and any custom permission…

Read more

How to Check If a SharePoint User is a Member of an Active Directory Group using PowerShell?

Requirement: Check If SharePoint User is Member of a Active Directory Group using PowerShell Solution: Although we can check if a particular user account is member of a AD security group using AD PowerShell cmdlets such as Get-ADGroupMember Here is the native method to find if a particular user account is a…

Read more

SharePoint Online: Site Users and Groups Report using PowerShell

Requirement: Generate a report with all site groups and members of each group of a SharePoint online site collection. Prerequisites: Make sure you have SharePoint Online Management Shell installed! Get all Site Groups and Members of Each group: We can view users and groups in SharePoint Online using PowerShell: To get all…

Read more

SharePoint Online: Export Permissions of a Site, List, Item using PowerShell

Requirement: Export permissions applied on a particular SharePoint Site, List or List Item to CSV report. PowerShell to Export Permissions of a Site, List, List Item in SharePoint Online: This PowerShell script extracts and exports Immediate (not on any underlying objects) permissions of the given object. E.g. get list permissions. This exports…

Read more