Forum Discussion

PaulKoning's avatar
PaulKoning
Brass Contributor
Jun 19, 2023

Can't make a goup calendar readonly anymore with Powershell

Hi,

We have some groups where regular group members are not allowed to make changes to the group calendar. I was able achieve this with Powershell as described in this post: https://answers.microsoft.com/en-us/msoffice/forum/all/calendar-permissions-in-an-office-365-group/b5f7cacc-bc11-4b8c-adf1-e94f11616ae2#:~:text=Below%20are%20the%20steps%3A%201%201.%20Connect%20to,command%20to%20check%20the%20CalendarMemberReadOnly%20in%20this%20group.

More info about the Set-UnifiedGroup command is found here: https://learn.microsoft.com/en-us/powershell/module/exchange/set-unifiedgroup?view=exchange-ps


All of a sudden I now am only able to read the settings and can't change them anymore. So this still works:

Get-UnifiedGroup -Identity "MYGROUP" -IncludeAllProperties | Format-List *Calendar*

But this gives an error:

Set-UnifiedGroup "MYGROUP" -CalendarMemberReadOnly

 

The error is: 

Write-ErrorMessage : Object reference not set to an instance of an object.


The strange thing about this, is that I am able to change other attributes, like:

Set-UnifiedGroup -Identity "MYGROUP" -AccessType Private

 

I use an account with Global Admin rights to execute the commands and we have an educational tenant. What is going wrong here?

39 Replies

Resources