cli bulk update of users "sync enabled" attribute
I have a question regarding CLI. I an trying to do a bulk update of select users' "sync enabled" attribute. Using the following command:
$ box users:update --bulk-file-path=[path] -t=[token]
Using a CSV file to list the users; the CSV file will contain two columns: ID, ???
Can't find the the field name for the sync-enabled attribute in the documentation. Thanks.
Jorge Molina
University of Miami
-
This was discussed in a support case, but I wanted to post the answer incase anyone else needs it:
You can feed a .csv file of user IDs you need to update the sync field for to the CLI. This .csv file will need to have one column with the header 'id':
To disable sync you would do:box users:update --bulk-file-path=test.csv --no-sync-enable
To enable sync you would do:
box users:update --bulk-file-path=test.csv --sync-enable
Please sign in to leave a comment.
Comments
1 comment