SharePoint Online: Set Active Directory Security Group as Site Collection Administrator using PowerShell

Requirement: Add active directory security group to SharePoint online site collection administrator group. PowerShell to Add AD Security group as Site Collection Administrator: Step 1: Get AD Security Group’s ID We need the ID of the AD group first. Use the PowerShell script to retrieve the ID, make sure you have Azure…

Read more

SharePoint Online: Find All Active Directory Security Groups in a Site Collection

Requirement: Get All AD Security Groups in a SharePoint Online Site. CSOM PowerShell to Find All AD Groups in SharePoint Online: Here is the PowerShell to get all active directory domain groups from SharePoint Online site collection: Get AD Groups in a Site Collection using SharePoint Online Management Shell: This time, lets…

Read more

Add Active Directory Group to SharePoint using PowerShell

Requirement: Add Active Directory Group to SharePoint Group using PowerShell How to Add Active Directory Group to SharePoint? To add AD group to SharePoint, do the following: Navigate to your SharePoint site and click on the Site Settings gear icon >> Select “Site settings” Click on the “People and groups” link under…

Read more

Add AD Group to SharePoint Online Group using PowerShell

Requirement: Add AD Group to SharePoint Online Group using PowerShell PowerShell to Add Active Directory Group to SharePoint Online Group This adds given Active directory security group into SharePoint Online group as a SharePoint user. You can also use AD Group’s Login ID (E.g. c:0t.c|tenant|915xnusf-fbb3-7da1-k252-33e0de69f19″) to Add AD Group to SharePoint Online…

Read more

Get All Members of An Active Directory Security Group in SharePoint

Requirement: Get Active Directory Group Membership to list all users of an AD Group. PowerShell to Get Members of an Active Directory Group in SharePoint Although you can get AD group members using Get-ADGroupMember cmdlet to query the Active Directory, Here is the native way to get users of an Active Directory…

Read more

SharePoint Online: Find and Delete Orphaned Users using PowerShell

What is “Orphaned Users” in SharePoint Online? In short, orphaned users are those who deleted from the authentication provider (such as removed from Active Directory when the user leaves the organization), and still continue to exist in SharePoint online sites! Scanning each user in the SharePoint Online site collection for orphaned users…

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