Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TYPE 1] Add bulk removal for users from groups #1406

Open
tkonsta opened this issue Jun 26, 2024 · 3 comments
Open

[TYPE 1] Add bulk removal for users from groups #1406

tkonsta opened this issue Jun 26, 2024 · 3 comments
Labels
enhancement needs investigation Issue needs to be looked at by Tableau

Comments

@tkonsta
Copy link

tkonsta commented Jun 26, 2024

Summary

Please add the operation that is already supported by the API to bulk remove users from a group.

Description

The API endpoint PUT /api/api-version/sites/site-id/groups/group-id/users/remove (see https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_users_and_groups.htm#remove_user_to_group ) allows to specify a list of users in the request body and all of them are removed from the group with only one API call. It would be nice to have this functionality in the Python library as well so we don't need to loop over the users one by one to remove them from a group.

@tkonsta tkonsta added enhancement needs investigation Issue needs to be looked at by Tableau labels Jun 26, 2024
@jorwoods
Copy link
Contributor

Work in progress.

@tkonsta
Copy link
Author

tkonsta commented Jun 28, 2024

Great to see you're working on this @jorwoods and thank you!

One remark, since I've just checked the PR you opened: So far you only consider the bulk user addition/removal to the site as far as I see. It would be great, if you could also support the endpoint for bulk group assignments (add/remove users from group) which is available from API version 3.21 as described in the docs of the endpoint I linked above in the issue description.

@jorwoods
Copy link
Contributor

Ah, you're right. Yeah, I misread the issue name as site instead of group. I'll try to add the bulk group edits sometime soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs investigation Issue needs to be looked at by Tableau
Projects
None yet
Development

No branches or pull requests

2 participants