SelectedGroupMemberAdd: Add members to Groups

SelectedGroupMemberAdd function automates the adding of new members to groups in the Group Members grid.


This also works in On-Premises Group Memberships module


group-member-add-item


Tag Attributes

Attribute Name

Attribute Value


KeepAlive

TRUE / FALSE - Defaults to FALSE


LoadDirectory

TRUE / FALSE - Defaults to FALSE / When set to TRUE, this parameter loads the full directory as if you'd clicked the dialog button.


LoadUserIds

list of user ids colon-separated

LoadUserIds and LoadGroupIds can be used at the same time

LoadDirectory cannot be used with LoadUserIds .

LoadGroupIds

list of group ids colon-separated

LoadUserIds and LoadGroupIds can be used at the same time

LoadDirectory cannot be used with LoadGroupIds.

ObjectTypes

List of object types (semicolon-separated) to include (as shown in "Filter by Object Type")


LoadServicePrincipalIds

Colon-separated service principal IDs

Loads these service principals in the address book.


For on-premises users and groups, LoadUserIds and LoadGroupIds take ObjectGUIDs.

LoadUserIds and LoadGroupIds also applies to:

SelectedGroupMemberAdd
SelectedGroupMemberCopy
SelectedGroupMemberMove
SelectedGroupMembershipCopy
SelectedGroupMembershipAdd
SelectedGroupMembershipTransfer
SelectedGroupSenderAddAccepted
SelectedGroupSenderAddRejected
SelectedGroupOwnerAdd
SelectedGroupOwnerSet
SelectedChannelMemberAdd
SelectedSetUserManager
SelectedDirectoryRoleAssign
SelectedMailboxAddDelegates

Detailed Description

add-to-1-selected-groups

To add new members to a group:

  • Select the group row(s) in the Group Members grid

  • Use SelectedGroupMemberAdd with a selection of target user(s) in the grid, in the dialog. Put the dialog selection inside the action: <Select Lines="ByValue"> with one <SetParam ColumnID="…" Value="…"/> per criterion, where ColumnID is a column of the dialog grid such as DISPLAYNAME or USERNAME (see the example below).


add-to-1-selected-groups-column-settings


To select, can use any of the default grid selection methods:

  • Select Rows in Grid

  • Select Rows From List

  • Select rows - inversion

  • Select / Filter from file

Example Script

XML
<ytriaAutomation Application="sapio365">
	<Select Lines="ByValue">
		<SetParam ColumnID="displayName" Value="Innovation Corner"/>
	</Select>
	<SelectedGroupMemberAdd LoadDirectory="true">
		<Select Lines="ByValue">
			<SetParam ColumnID="USERNAME" Value="RosaL@M365x823975.onmicrosoft.com"/>
		</Select>
	</SelectedGroupMemberAdd>
	<Save/>
</ytriaAutomation>


XML
<ytriaAutomation Application="sapio365">
	<Select Lines="ByValue">
		<SetParam ColumnID="displayName" Value="Innovation Corner"/>
	</Select>
	<SelectedShowMembers NewFrame='true'>
		<Select Lines="All"/>
		<SelectedGroupMemberAdd LoadUserIds="e6e3d672-69b1-40ec-ac28-1f031fc69179:4db4f5d5-19b1-483e-9051-d48feeedfc78:87139777-3166-44a0-b283-302e8a2c7ae7" LoadGroupIds="db9eba14-c812-48f7-b903-c5ac25414b2d">
			<Select Lines="All"/>
		</SelectedGroupMemberAdd>
	</SelectedShowMembers>
</ytriaAutomation>