Skip to content

Commit 21a8ecb

Browse files
authored
Merge pull request #805 from tecchan1107/add-spo-hide-people-who-have-lists-open
Added spo-hide-people-who-have-lists-open
2 parents 593a712 + 5fe4ba7 commit 21a8ecb

3 files changed

Lines changed: 105 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
plugin: add-to-gallery
3+
---
4+
5+
# Hide people who have lists open
6+
7+
## Summary
8+
9+
In Microsoft Lists, you can see in real time who is viewing the currently open list or list items. However, for privacy and other reasons, you may want to hide this information.
10+
11+
This sample script demonstrates how to hide real-time viewing information for a specific site.
12+
13+
![Screenshot of the example](./assets/example.png)
14+
15+
# [SPO Management Shell](#tab/spoms-ps)
16+
17+
```powershell
18+
$adminCenterUrl = "https://{tenantName}-admin.sharepoint.com/"
19+
$targetSiteUrl = "https://{tenantName}.sharepoint.com/sites/{siteName}"
20+
21+
# Connect to SharePoint Admin Center
22+
Connect-SPOService -Url $adminCenterUrl
23+
24+
# Hide people who have lists open on the target site
25+
Set-SPOSite -Identity $targetSiteUrl -HidePeopleWhoHaveListsOpen $true
26+
27+
# Disconnect from the SharePoint Admin Center
28+
Disconnect-SPOService
29+
```
30+
[!INCLUDE [More about SPO Management Shell](../../docfx/includes/MORE-SPOMS.md)]
31+
32+
***
33+
34+
## Additional Notes
35+
36+
- **This setting change is applied at the site level**, not at the list level. Please keep that in mind.
37+
- As of March 12, 2025, I am not aware of a way to change this setting at the list level.
38+
39+
## References
40+
41+
- [Microsoft Lists forms: What's New](https://techcommunity.microsoft.com/blog/spblog/microsoft-lists-forms-whats-new/4374037)
42+
- [Set-SPOSite - -HidePeopleWhoHaveListsOpen](https://learn.microsoft.com/powershell/module/sharepoint-online/set-sposite?view=sharepoint-ps#-hidepeoplewhohavelistsopen)
43+
44+
## Contributors
45+
46+
| Author(s) |
47+
|------------------|
48+
| [Tetsuya Kawahara](https://github.com/tecchan1107) |
49+
50+
[!INCLUDE [DISCLAIMER](../../docfx/includes/DISCLAIMER.md)]
51+
<img src="https://m365-visitor-stats.azurewebsites.net/script-samples/scripts/spo-hide-people-who-have-lists-open" aria-hidden="true" />
111 KB
Loading
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[
2+
{
3+
"name": "spo-hide-people-who-have-lists-open",
4+
"source": "pnp",
5+
"title": "Hide people who have lists open",
6+
"shortDescription": "This sample script demonstrates how to hide real-time viewing information in Microsoft Lists.",
7+
"url": "https://pnp.github.io/script-samples/spo-hide-people-who-have-lists-open/README.html",
8+
"longDescription": [
9+
"This sample script demonstrates how to hide real-time viewing information in Microsoft Lists."
10+
],
11+
"creationDateTime": "2025-03-12",
12+
"updateDateTime": "2025-03-12",
13+
"products": [
14+
"SharePoint"
15+
],
16+
"metadata": [
17+
{
18+
"key": "SPO-MANAGEMENT-SHELL",
19+
"value": "16.0.25814.12000"
20+
}
21+
],
22+
"categories": [
23+
"Configure"
24+
],
25+
"tags": [
26+
"Connect-SPOService",
27+
"Set-SPOSite",
28+
"Disconnect-SPOService"
29+
],
30+
"thumbnails": [
31+
{
32+
"type": "image",
33+
"order": 100,
34+
"url": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/spo-hide-people-who-have-lists-open/assets/example.png",
35+
"alt": "Screenshot of the example"
36+
}
37+
],
38+
"authors": [
39+
{
40+
"gitHubAccount": "tecchan1107",
41+
"company": "",
42+
"pictureUrl": "https://github.com/tecchan1107.png",
43+
"name": "Tetsuya Kawahara"
44+
}
45+
],
46+
"references": [
47+
{
48+
"name": "Introduction to the SharePoint Online Management Shell",
49+
"description": "Check out the SPO Management Shell documentation site to get started and for the reference to the cmdlets.",
50+
"url": "https://learn.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell"
51+
}
52+
]
53+
}
54+
]

0 commit comments

Comments
 (0)