Forum Discussion
PaulKoning
Jun 19, 2023Brass Contributor
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: Calendar permissions i...
Kris_Petrov_1986
Jul 25, 2023Copper Contributor
Can confirm that the command is working now and it propagates too. Hooray!
- bthomasAug 04, 2023Iron ContributorI used the command in my test tenant yesterday successfully to set the group calendar to CalendarMemberReadOnly:$true.
Today I wanted to revert it for another test and am not able to set it to CalendarMemberReadOnly:$false nor $true...- Kris_Petrov_1986Aug 07, 2023Copper Contributor
bthomas Same here. The command on my tenant didn't work too. I get the below message:
Set-UnifiedGroup: Object reference not set to an instance of an object.I tried to specify by the name of the group or by groupID and both didn't work.
- ashakterAug 07, 2023Copper ContributorStarted working for me a few weeks ago. A Microsoft tech responded to my ticket that they will be rolling out the fix to all tenants over the next few weeks.
- PaulKoningAug 07, 2023Brass Contributor
It is still not working for me either 😞
Can it be that the extra line under the error message has something to do with it?Set-UnifiedGroup -Identity "MYGROUP" -CalendarMemberReadonly Write-ErrorMessage : Object reference not set to an instance of an object. At C:\Users\<myupn>\AppData\Local\Temp\tmpEXO_hxn1vmy2.kes\tmpEXO_hxn1vmy2.kes.psm1:1159 char:13
When I open this tempfile and look at the code at line 1159 it has this Powershell command:
Write-ErrorMessage $ErrorObject
Makes some sense as the errormessage alse mentions this. Seems that an errormessage has to be written to the screen, but that it goes wrong?