@@ -933,6 +933,56 @@ None.
933933<br >
934934<br >
935935
936+ #### groups.add_users
937+
938+ ``` py
939+ groups.add_users(group_item, user_id):
940+ ```
941+
942+ Adds multiple users to the specified group.
943+
944+
945+ REST API [ Add User to Group] ( https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref.htm#add_user_to_group )
946+
947+ ** Version**
948+
949+ This endpoint is available with REST API version 3.21 and up. Method added in
950+ version v0.33
951+
952+ ** Parameters**
953+
954+ Name | Description
955+ :--- | :---
956+ ` group_item ` | The ` group_item ` specifies the group to update.
957+ ` users ` | An Iterable of UserItems, or user ids.
958+
959+
960+
961+
962+ ** Returns**
963+
964+ list[ UserItem]
965+
966+
967+ ** Example**
968+
969+ ``` py
970+ # Adding a user to a group
971+ #
972+ # get the group item
973+ all_groups, pagination_item = server.groups.get()
974+ mygroup = all_groups[1 ]
975+
976+ # Add Viewers to the group
977+ added_users = server.groups.add_users(
978+ mygroup,
979+ server.users.filter(site_role = TSC .UserItem.Roles.Viewer)
980+ )
981+ ```
982+
983+ <br >
984+ <br >
985+
936986#### groups.create
937987
938988``` py
@@ -1244,6 +1294,56 @@ None. The user is removed from the group.
12441294<br >
12451295<br >
12461296
1297+ #### groups.remove_users
1298+
1299+ ``` py
1300+ groups.remove_users(group_item, user_id):
1301+ ```
1302+
1303+ Removes multiple users from the specified group.
1304+
1305+
1306+ REST API [ Remove User from Group] ( https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref.htm#remove_user_to_group )
1307+
1308+ ** Version**
1309+
1310+ This endpoint is available with REST API version 3.21 and up. Method added in
1311+ version v0.33
1312+
1313+ ** Parameters**
1314+
1315+ Name | Description
1316+ :--- | :---
1317+ ` group_item ` | The ` group_item ` specifies the group to update.
1318+ ` users ` | An Iterable of UserItems, or user ids.
1319+
1320+
1321+
1322+
1323+ ** Returns**
1324+
1325+ None
1326+
1327+
1328+ ** Example**
1329+
1330+ ``` py
1331+ # Removing a user from a group
1332+ #
1333+ # get the group item
1334+ all_groups, pagination_item = server.groups.get()
1335+ mygroup = all_groups[1 ]
1336+
1337+ # Remove Viewers from the group
1338+ server.groups.remove_users(
1339+ mygroup,
1340+ server.users.filter(site_role = TSC .UserItem.Roles.Viewer)
1341+ )
1342+ ```
1343+
1344+ <br >
1345+ <br >
1346+
12471347
12481348#### groups.update
12491349
0 commit comments