watermint / toolbox

The watermint toolbox is the multi-purpose utility command-line tool for web services including Dropbox, Figma, GitHub, etc. The purpose of the tool is to provide users of cloud services and system administrators with a way to automate workflows and provide a work-around for some issues.
https://toolbox.watermint.org/
Apache License 2.0
77 stars 8 forks source link

Allow 'legalhold add' command to be run on a specific user instead of just a file path #839

Open IIKCARUS opened 4 months ago

IIKCARUS commented 4 months ago

Is your feature request related to a problem? Please describe. I have been writing wrapper scripts in Powershell that use the tbx commands to manage our Dropbox Business tenant, and this particular command does not have a single-user mode like most of the other commands. This makes it impossible to call the command as part of a script that loops through an array of usernames.

Describe the solution you'd like Currently the command only accepts a file path to a CSV. Instead, the command would accept a properly formatted member email. Example valid syntax: "dropbox team legalhold add -member user.name@org.com -name $name -start-date $start-date"

Describe alternatives you've considered My scripted approach would work by calling a CSV with just one username in it, but this requires creating multiple CSVs, one per each user, with just one entry. In this specific instance, we need to open multiple legal holds for a long list of users. However, instead of using the batch add feature (the default for this command) it would be better to allow a single user to be referenced directly in the script. This would allow for each hold to be manipulated on a user-by-user basis, and for each hold to be named something specific to each user.

Additional context I realize this may be an uncommon use case to have so many users, each needing an individual legal hold. If there is another way to accomplish this by using this command or another command in the toolbox, please let me know.

watermint commented 4 months ago

Hi. Thank you for the feedback. I'll add the command in the future release.