SelectedGroupMembershipRemove: Remove Membership

Tag: SelectedGroupMembershipRemove

The SelectedGroupMembershipRemove function automates the action of removing the group memberships of users in the Group Memberships grid.


This also works in On-Premises Group Memberships module


XML
<SelectedGroupMembershipRemove/>

Group-Membership-Remove


Detailed Description

To remove group memberships:

  • Select the membership row(s) to remove (user and group) in the Group Memberships grid, for instance with <Select Lines="ByValue"> (see the example below)

  • Use SelectedGroupMembershipRemove: it removes the selected memberships. No dialog opens, so the action takes no selection of its own.

Example Script

XML
<ytriaAutomation Application="sapio365">
	<Select Lines="ByValue">
		<SetParam ColumnID="displayName" Value="Alex Wilber" And="true"/>
		<SetParam ColumnID="groupDisplayName" Value="sg-Legal"/>
	</Select>
	<SelectedGroupMembershipRemove/>
	<Save/> 
</ytriaAutomation>