Forum Discussion
Office 365 group calendar missing?
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 - paulcreedy710Aug 09, 2022Brass ContributorI'm going to guess you have a commandlet missing from Powershell there somewhere that needs importing/installing.
- dfoster303Aug 10, 2022Copper Contributor
That would seem to be the case. However, I've tried installing the Exchange Online Powershell module V1 and V2 to no avail. No one on my team can get any cmdlet with the word 'Unified' to work except for 'Get-UnifiedGroup'. After importing the exchange online module, we can run a 'Get-Command' and it returns no 'unified' cmdlets, save 'Get-' I don't know if it matters, but we are an all Azure environment, and do not have any on-premises Exchange servers. paulcreedy710
- Jacques-RAV-JordaanAug 08, 2022Copper ContributorHi Dfoster303. I would recommend downloading the Exchange Online Powershell via the old ECP portal. You should then have all the required CMDlets.
Or try this guide:
https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps- dfoster303Aug 10, 2022Copper ContributorThank you! Unfortunately, we do not have any on-premises exchange server, so this guide is not applicable to my situation.
- DEnglandJul 06, 2022Copper ContributorThank you, Paul, for the PowerShell. I had the same issue and this worked perfectly.