Skip to content

Commit

Permalink
Merge pull request #783 from TiloGit/patch-1
Browse files Browse the repository at this point in the history
fix script and add instructions for spo-get-everyone-everyoneexceptexternalusers
  • Loading branch information
pkbullock authored Nov 20, 2024
2 parents 675c41d + 69553f0 commit ab82009
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
15 changes: 14 additions & 1 deletion scripts/spo-get-everyone-everyoneexceptexternalusers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ This is an example where 'Everyone except external users' has been added to the

### Prerequisites

- The user account that runs the script must have SharePoint Online site administrator access.
- PnP PowerShell https://pnp.github.io/powershell/
- The user account that runs the script must have SharePoint Online site administrator access and access to all sites to report on.

### How to use

- Optimize the `Connect-PnPOnline -Url $adminSiteURL` in the script as needed
- save script as ps1 file
- Create Logs folder
- run like
`.\get-sp-ebe.ps1 mydomain`

# [PnP PowerShell](#tab/pnpps)

Expand Down Expand Up @@ -215,10 +224,13 @@ Function QueryUniquePermissions($_web)
if(Test-Path $directorypath){
Connect-PnPOnline -Url $adminSiteURL -Interactive
$adminConnection = Get-PnPConnection
Get-PnPTenantSite -Filter "Url -like '$TenantURL'" -Connection $adminConnection | Where-Object { $_.Template -ne 'RedirectSite#0' } | foreach-object {
Write-Host "Processing Site:" $_.Url -ForegroundColor Magenta
Connect-PnPOnline -Url $_.Url -Interactive
#array storing permissions
$web = Get-PnPWeb
#root web , i.e. site collection level
Expand Down Expand Up @@ -251,6 +263,7 @@ Sample first appeared on [Manage 'Everyone' and 'Everyone except external users'
| Author(s) |
|-----------|
| [Reshmee Auckloo](https://github.com/reshmee011) |
| TiloGit |


[!INCLUDE [DISCLAIMER](../../docfx/includes/DISCLAIMER.md)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"As part of Microsoft 365 Copilot readiness, you may want to find where 'Everyone' and 'Everyone except external users' claims are granted permissions which is a cause of oversharing. This script will help you audit the 'Everyone' and 'Everyone except external users' claims within your SharePoint site collection."
],
"creationDateTime": "2024-10-01",
"updateDateTime": "2024-10-01",
"updateDateTime": "2024-11-13",
"products": [
"SharePoint",
"Permissions",
Expand Down Expand Up @@ -46,6 +46,12 @@
}
],
"authors": [
{
"gitHubAccount": "TiloGit",
"company": "",
"pictureUrl": "https://github.com/TiloGit.png",
"name": "TiloGit"
},
{
"gitHubAccount": "reshmee011",
"company": "",
Expand Down

0 comments on commit ab82009

Please sign in to comment.