Add User To SharePoint Group Programmatically with STSADM and C#

Apart from SharePoint User Interface, We can programmatically add users to SharePoint group or site in these ways: Using STSADM command-line tool to add users  Add users to Sharepoint site/group using C# Object Model 1. Using STSADM command-line tool to add users: To add users to the SharePoint site, we can use…

Read more

Add Web Application User Policy using PowerShell in SharePoint

SharePoint web application user policy is the ideal way to manage permissions at the web application level instead of individual site collections. E.g. You want to provide full control to your CIO to all site collections in a intranet web application. Web app policy is discussed in my another article: SharePoint web…

Read more

SharePoint Permission Levels – Explained

As organizations grow and projects become more complex, managing access to files and information becomes increasingly important. SharePoint, Microsoft’s web-based collaboration platform, offers powerful tools for controlling access to resources, but great power comes with great responsibility. In this comprehensive guide, I will walk you through everything you need to know about…

Read more

Grant Permission to Folders in SharePoint Document Library using PowerShell

Requirement: grant folder permission in SharePoint using PowerShell script. Here is my script to grant access to a folder in SharePoint Library using PowerShell: Set Permission to SharePoint Group to All Folders in a Library: Certain folders in a SharePoint library is with unique permission. The requirement is to add permission to…

Read more

How to Add Users to SharePoint Site?

Adding users to a SharePoint site is a frequent activity for SharePoint site owners. A fundamental aspect of managing a SharePoint site is controlling who can access it. This involves adding users to the site, assigning them appropriate permissions, and possibly grouping them for easier management. In this quick guide, we will…

Read more

Add a User to Owner Group of All SharePoint Sites using PowerShell

Requirement: Add user to Owner Group of All SharePoint site collections using PowerShell! We’ve site collections grouped by managed paths such as “Teams”, “Projects”. Got a requirement to add a user to the Owner/Members group of all sites under a particular managed path. How to add a User to the Owner/Member Group…

Read more

Remove All Users from a SharePoint Group using PowerShell

Requirement: Remove all users from a group in SharePoint SharePoint PowerShell to remove all users from a group: PowerShell script to remove all user from a SharePoint group programmatically:

Read more

Break Inheritance and Add-Remove Item Level Permission with PowerShell

Requirement: Break the permission inheritance of a SharePoint list item and grant permission only to a specific user and group. How to Break Permission Inheritance in SharePoint? You can change a document or item’s permissions by stop inheriting its permissions from its parent and add remove permissions to the item directly. To…

Read more

SharePoint Users and Groups Security Report Based on Permission Levels

Getting insights on who has access to  SharePoint sites & lists and what level of permission has been granted on all over site collection is a frequent requirement in SharePoint governance. Because out-of-the-box security reporting is very limited, I wrote this PowerShell script to generate SharePoint users and groups security reports based…

Read more

SharePoint Users and Groups Permission Analysis Report for Site Collection

Requirement: For security audit purpose, had to generate a comprehensive users and groups security report for entire site collection. Some of the sub-sites, some of the lists & libraries are with unique permission. Solution: Lets use PowerShell with little HTML & CSS to generate a users and groups permission Report! On executing…

Read more