SelectedCalendarResetDelegateUserCollection: Reset Delegate User Collection

Tag: SelectedCalendarResetDelegateUserCollection

SelectedCalendarResetDelegateUserCollection flags the calendars of the selected rows for a reset of their delegate user collection in the Calendar Permissions module, like the Reset Delegate User Collection button. All the delegate permissions on these calendars are removed when the changes are saved.

XML
<SelectedCalendarResetDelegateUserCollection/>

Tag Attributes

This action has no attributes.

Detailed Description

Use it when delegate permissions are corrupted and can’t be added, changed or removed. The reset runs Remove-MailboxFolderPermission -ResetDelegateUserCollection through Exchange Online PowerShell.

If a selected calendar has unsaved delegate changes, sapio365 asks whether to undo them and flag the calendar for reset instead.

Example Script

Reset the delegates of one user’s calendar, from the Users module:

XML
<ytriaAutomation Application="sapio365">
	<ShowUsers>
		<Select Lines="ByValue">
			<SetParam ColumnID="userPrincipalName" Value="AnnaL@contoso.onmicrosoft.com"/>
		</Select>
		<SelectedShowCalendarPermissionsUsers NewFrame="True">
			<Select Lines="All"/>
			<SelectedCalendarResetDelegateUserCollection/>
			<SaveSelected/>
		</SelectedShowCalendarPermissionsUsers>
	</ShowUsers>
</ytriaAutomation>