SelectedAddCalendarPermission: Add Calendar Permissions

Tag: SelectedAddCalendarPermission

SelectedAddCalendarPermission adds permissions to the selected calendars in the Calendar Permissions module: it opens the address book to choose the delegates, and gives them the role set in Role, or the individual permission set in Permissions.

XML
<SelectedAddCalendarPermission/>

Tag Attributes

Attributes

Attribute Value

Comment

Role

Author / Contributor / Editor / NonEditingAuthor / Owner / PublishingAuthor / PublishingEditor / Reviewer / AvailabilityOnly / LimitedDetails

Role given to the new delegates. Use Role or Permissions, not both.

KeepAlive

TRUE / FALSE

Controls whether the window stays open.

LoadDirectory

TRUE / FALSE

TRUE loads the full directory in the address book.

LoadUserIds

Colon-separated user IDs

Loads these users in the address book.

ObjectTypes

Semicolon-separated object types

Object types to include, as shown in "Filter by Object Type".

Permissions

None / CreateItems / CreateSubfolders / DeleteAllItems / DeleteOwnedItems / EditAllItems / EditOwnedItems / FolderContact / FolderOwner / FolderVisible / ReadItems

Individual permissions given to the new delegates, instead of a Role. Separate several permissions with semicolons.

SendNotificationToUser

TRUE / FALSE

TRUE sends the delegates a calendar sharing invitation. Only with the AvailabilityOnly, LimitedDetails, Reviewer or Editor role; ignored with a warning otherwise.

SharingPermissionFlags

None / Delegate / Delegate, CanViewPrivateItems

Delegate also makes the new delegates calendar delegates, who receive meeting invites and responses. Delegate, CanViewPrivateItems also lets them see private items. Only with the Editor role.

Detailed Description

Select the delegates inside the action, with <Select Lines="ByValue"> and one <SetParam ColumnID="…" Value="…"/> per criterion, where ColumnID is a column of the address book such as DISPLAYNAME or USERNAME. This works as in SelectedGroupMemberAdd.

The permissions are added in the grid. Use Save or SaveSelected to send them.

Example Script

Give a user the Reviewer role on your calendar:

XML
<ytriaAutomation Application="sapio365">
	<ShowMyDataCalendarPermissions>
		<Select Lines="All"/>
		<SelectedAddCalendarPermission Role="Reviewer" LoadDirectory="True">
			<Select Lines="ByValue">
				<SetParam ColumnID="USERNAME" Value="RosaL@contoso.onmicrosoft.com"/>
			</Select>
		</SelectedAddCalendarPermission>
		<Save/>
	</ShowMyDataCalendarPermissions>
</ytriaAutomation>

Make a user an Editor and a calendar delegate, and send them a sharing invitation:

XML
<ytriaAutomation Application="sapio365">
	<ShowMyDataCalendarPermissions>
		<Select Lines="All"/>
		<SelectedAddCalendarPermission Role="Editor" SharingPermissionFlags="Delegate" SendNotificationToUser="True" LoadDirectory="True">
			<Select Lines="ByValue">
				<SetParam ColumnID="USERNAME" Value="RosaL@contoso.onmicrosoft.com"/>
			</Select>
		</SelectedAddCalendarPermission>
		<Save/>
	</ShowMyDataCalendarPermissions>
</ytriaAutomation>