Forum Discussion
Office 365 group calendar missing?
- paulcreedy710Mar 21, 2022Brass Contributor
Hi Sajid,
I have found the cause of the problem in my instance so I've place the fix below for you. Please check that this is actually the same problem before using the fix.
In Feb 2018 Microsoft by default HIDE email groups by default. What I found was that the group was there, but actually hidden. There is a way to list the hidden groups and then a way to unhide that group. The SharePoint groups I had that were not hidden were created before Feb 2018, those after wards are hidden from both the calendar and from the address book.
This solution worked for me
#Early 2018 MS stopped Groups from appearing in Outlook calendars or the address book by default
#If a SharePoint sites needs it's original Group Calendar or a Group Calendar is missing from Outlook then you have to unhide that group using Powershell.#Connect to ExchangeOnline. You will be prompted to log in with your O365 credentials and MFA Connect-ExchangeOnline -UserPrincipalName xxxxxxxxxxx # Gets a list of all groups that are hiddenfrom* Get-UnifiedGroup |ft DisplayName,HiddenFrom* #Sets a group so that it is not hidden from Outlook or the address book #Change "Group Name" to the name of the group to unhide #Unhides the group from SharePoint Set-UnifiedGroup -Identity "Group Name" -HiddenFromExchangeClientsEnabled:$false #Unhides the group from the address book Set-UnifiedGroup -Identity "Group Name" -HiddenFromAddressListsEnabled:$false
- AugustoTEC1Dec 15, 2022Copper ContributorThis works for me
- Jacques-RAV-JordaanAug 08, 2022Copper ContributorThank you for sharing the PowerShell commands!
- dfoster303Aug 03, 2022Copper Contributor
Here's the kicker - even though I've connected to exchange online management via powershell, the set-unifiedgroup command consistently returns an error that it doesn't exist (though the get-unifiedgroup command works just fine).
Set-UnifiedGroup : The term 'Set-UnifiedGroup' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Set-UnifiedGroup -Identity "Marcom" -HiddenFromAddressListsEnabled:$f ... + ~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Set-UnifiedGroup:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
- OttomagicFeb 21, 2023Copper ContributorI'm hoping you since figured this out, but the error is related to the cmdlet missing from your module. Looks like root cause is related to permissions. This user noted that he didn't have Exchange Administrator role in Azure AD. Once added and reloading, that module worked.
https://stackoverflow.com/a/65598605/20185963