SelectedShowMailboxPermissions

<ytriaAutomation Application="sapio365">   
	<!-- Mailbox permissions module automation -->
	<List name="MailList" Action="SetVar" DISPLAYNAME="Lynne Robbins" user="GradyA@M365x250522.OnMicrosoft.com" />
	<List name="MailResetList" Action="SetVar" DISPLAYNAME="Irvin Sayers" user="GradyA@M365x250522.OnMicrosoft.com" />
	<List name="PermissionList" Action="SetVar" accessRights="ReadPermission" />
	<ShowUsers>
		<Select Lines="ByValue">
			<SetParam ColumnID="userPrincipalName" Value="AdeleV@M365x250522.OnMicrosoft.com"/>
			<SetParam ColumnID="userPrincipalName" Value="admin@M365x250522.onmicrosoft.com"/>
			<SetParam ColumnID="userPrincipalName" Value="LidiaH@M365x250522.OnMicrosoft.com"/>
		</Select>
		<SelectedShowMailboxPermissions  NewFrame="false">
			<AddToSelection >
				<Select Lines="ByValue">
					<SetParam columnID="DISPLAYNAME" value="Alex Wilber"/>
				</Select>	
			</AddToSelection>		
			<AddToSelection >
				<Select Lines="ByValue">
					<SetParam columnID="DISPLAYNAME" value="Irvin Sayers"/>
				</Select>	
			</AddToSelection>		
			<SelectFromList ListName="MailList">
				<SetParam columnID="user" value="user"/>
			</SelectFromList>
			<SetVarListFromGridSelection ListName="UserList" UsersName="meta.displayName" accessRights="accessRights" where= "accessRights" NotEquals= ""  Unique="true"  InheritanceType="InheritanceType" Deny="Deny" />
			<SelectedRemovePermissions/>
			<Unselect/>
			<loop list="UserList">
				<ExecuteListAction/> 
				<Select lines="ByValue">
					<SetParam columnID="meta.displayName" value="{%UsersName%}"/>
				</Select>				
				<SelectedMailboxAddDelegates AccessRight="{%accessRights%}" InheritanceType="{%InheritanceType%}" Deny="{%Deny%}" loadDirectory="true" >
					<SelectFromList ListName="MailList">
						<SetParam columnID="DISPLAYNAME" value="DISPLAYNAME"/>
					</SelectFromList>
				</SelectedMailboxAddDelegates>
			</loop>			
			<SelectFromList ListName="MailResetList">
				<SetParam columnID="meta.displayName" value="DISPLAYNAME"/>
			</SelectFromList>
			<SelectedMailboxResetPermissions/>
			<Unselect/> 
			<SelectFromList ListName="PermissionList">
				<SetParam columnID="accessRights" value="accessRights"/>
			</SelectFromList>
			<SelectedDelegateAddPermissions AccessRight="ExternalAccount" InheritanceType="Descendents" Deny="true"/>
			<SelectedDelegateAddPermissions AccessRight="ChangePermission" InheritanceType="Children" Deny="False"/>
			<ShowSelfPermissions Value="true"/>
		</SelectedShowMailboxPermissions>
	</ShowUsers>
</ytriaAutomation>
XML