Hi Glenn Maxwell
it is possible to achieve this using PowerShell and the Microsoft Graph API to manage the permissions of an Office 365 Group calendar. below is a code using PowerShell and the Microsoft Graph API.
# Install the MSAL.PS module if you haven't already
# Install-Module -Name MSAL.PS
# Connect to Microsoft Graph
Connect-MsalService -Scopes "Group.ReadWrite.All"
# Replace with your Group ID and desired permission settings
$groupId = "yourGroupId"
$viewAccessUsers = "user1@contoso.com", "user2@contoso.com", ... # List of users with view access
$editAccessUsers = "user3@contoso.com", "user4@contoso.com", ... # List of users with edit access
# Set calendar permissions for users with view access
foreach ($user in $viewAccessUsers) {
Set-MgCalendarPermission -GroupId $groupId -UserId $user -AccessRights "Read" -Confirm:$false
}
# Set calendar permissions for users with edit access
foreach ($user in $editAccessUsers) {
Set-MgCalendarPermission -GroupId $groupId -UserId $user -AccessRights "Read, Write" -Confirm:$false
}
If this help's kindly accept the answer thanks much.