Tag: SelectedGroupOwnerAdd
The SelectedGroupOwnerAdd function automates the action of adding owners to selected groups in the Group Owners grid.
<SelectedGroupOwnerAdd LoadDirectory="true">
<Select Lines="ByValue">
<SetParam ColumnID="DISPLAYNAME" Value="..."/>
</Select>
</SelectedGroupOwnerAdd>
This works in both Group Members and Group Owners modules.
This doesn't work in On-Premises Group Members module. Use SelectedGroupOwnerSet instead.
Tag Attributes
|
Attributes |
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 |
Colon-separated user IDs Loads these users in the address book. |
|
LoadServicePrincipalIds |
Colon-separated service principal IDs Loads these service principals in the address book. |
|
ObjectTypes |
Semicolon-separated object types Object types to include, as shown in "Filter by Object Type". |
Detailed Description
To add owners:
-
Select the group row(s) in the Group Owners grid
-
Use SelectedGroupOwnerAdd with a selection of target user(s) in the grid in the dialog
To select, you 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
<ytriaAutomation Application="sapio365">
<Select Lines="ByValue">
<SetParam ColumnID="displayName" Value="Innovation Corner"/>
</Select>
<SelectedGroupOwnerAdd LoadDirectory="true">
<Select Lines="ByValue">
<SetParam ColumnID="USERNAME" Value="MarieS@M365x823975.onmicrosoft.com"/>
</Select>
</SelectedGroupOwnerAdd>
<Save/>
</ytriaAutomation>