manifoldco / torus-cli

A secure, shared workspace for secrets
https://www.torus.sh
BSD 3-Clause "New" or "Revised" License
614 stars 32 forks source link

Unable to remove team member #366

Closed radmen closed 6 years ago

radmen commented 6 years ago

I'm trying to remove team member. Sadly, command fails.

$ torus teams members member

   Name                  Username
   John Doe      john
$ torus teams remove john member
Cannot remove members from the member team

Excerpt from torus debug:

$ DEBUG=1 torus debug
Timestamp            Thu Mar  1 12:49:30 UTC 2018
Debug                false
Session Type         user
User ID              040qpv1ebmqfkk6663ggrvd5r609y
Identity             radmen

CLI                  0.29.0
Daemon               0.29.0
Registry             0.24.1
Registry URI         https://registry.arigato.sh

Is there something that I'm doing wrong, or is this an error somewhere in the API?

ianlivingstone commented 6 years ago

All members of an organization belong to the member team, so they can't be removed. However, to remove a user from an organization you can use torus orgs remove $username which will remove them from the org and all associated teams.

radmen commented 6 years ago

Thank you! I've missed that one.