Forum Discussion
Default Group Privacy Setting
Is it possible to change the default group privacy setting to private from public?
12 Replies
- Eugene BarnardtCopper Contributor
Does anyone know of a PowerShell script whereby you can convert all Public groups to Private ?
The idea is I can perform a "sweep up" in case any users created Public groups (for data privacy reasons we want all groups to be Private)
Thanks in advance
- Eugene BarnardtCopper ContributorI found it:
Get-UnifiedGroup | Where {$_.AccessType -eq "Public"} | Set-UnifiedGroup -AccessType Private- cfiessinger
Microsoft
A more advance version based on classification:
#...................................
# Variables:
# Cut off date in days
# Classification
#...................................
$cutoffdate = ((Get-Date).AddDays(-10))
$classification = "High"# Retrieve recently created groups with accesstype set to PUBLIC
$Groups = Get-UnifiedGroup | Where-Object {
$_.WhenCreated -ge $cutoffdate -and $_.AccessType -eq 'Public' -and $_.Classification -eq $classification } `
| Sort-Object whencreated | Select DisplayName, WhenCreated, AccessType, Classification, ManagedBy# For each new group update set accesstype to PRIVATE
ForEach ($G in $Groups) {
Set-UnifiedGroup -Identity $G.DisplayName -AccessType 'Private'
Write-Host "The following Group privacy setting was updated:" $G.DisplayName
}
- David Rosenthal
Microsoft
Not a script, but here is the PowerShell you need to create it: https://technet.microsoft.com/library/mt238274(v=exchg.160).aspx
- Jan AsmusCopper ContributorSame here - when creating a new group from xyz .. the pre-selected type shoul dbe private (user may overlook) and only by intend they shall set to public.
- Alex VincentBrass Contributor
You can vote for this on Uservoice here:
https://office365.uservoice.com/forums/286611-office-365-groups/suggestions/14740545-set-office-365-groups-private-by-default
- As Christophe says, it's not possible to make private the default. However, there's nothing to stop you running some PowerShell to set groups to be private unless they meet a certain criterion (for instance, a certain value is found in the Notes field).
- cfiessinger
Microsoft
it's not possible. the goal is to foster collaboration hence public by default
- Do you mean that when a Group is created it should be created as private by default?
- Chuck WhitsonCopper Contributor
Yes, when a user goes to create a group, I would like to have the default privacy setting set to Private instead of Public.
- As Vassil said, I thik it's not possible
Afaik, no. TonyRedmond might know more :)