PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Im trying to assign Calendar Permissions to Owner and Member, Owner should have read&write while members only read.
This is the code i came up with. the error i got was the following:
Specified method is not supported.
Status: 400 (BadRequest)
ErrorCode: ErrorNotSupported
Thank you for your help
$groupId
$calendarId
$owners
$members
foreach
$ownerId
New-MgUserCalendarPermission
}
foreach
$memberId
New-MgUserCalendarPermission
}