Tag: SelectedGroupMembershipAdd
The SelectedGroupMembershipAdd automates the action of adding selected users to a group in the Group Memberships grid.
<SelectedGroupMembershipAdd LoadDirectory="true">
<Select Lines="ByValue">
<SetParam ColumnID="DISPLAYNAME" Value="..."/>
</Select>
</SelectedGroupMembershipAdd>
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. |
|
LoadGroupIds |
Colon-separated group IDs Loads these groups 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 users to groups:
-
Select the user row(s) in the Group Memberships grid
-
Use SelectedGroupMembershipAdd with a selection of target group(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).
Example Script
<ytriaAutomation Application="sapio365">
<Select Lines="ByValue">
<SetParam ColumnID="displayName" Value="Alex Wilber" And="true"/>
<SetParam ColumnID="OBJECTTYPE" Value="User"/>
</Select>
<SelectedGroupMembershipAdd LoadDirectory="true">
<Select Lines="ByValue">
<SetParam ColumnID="DISPLAYNAME" Value="Leadership Connection"/>
</Select>
</SelectedGroupMembershipAdd>
<Save/>
</ytriaAutomation>