How do I add users to org-collections using cli

Not able to add users to org-collections
I tried the following command but it doesn’t work :

echo '{"id":"49304e2d-c0e0-4bb5-a12b-c0bc578ad757", "object": "org-member"}' | bw encode | bw edit --organizationid 2a6ebb47-5d23-4a59-abd6-57b36b395e76 org-collection 2f99f6cb-e261-4d91-bcf0-c2534658bc74

Error message

organizationid option does not match request object.

Checked if the user and collection belongs to the organization or not.OrganizationID is also correct.

Couldn’t find anything in the docs on how to do this, so I came here.
Thanks.

Hello @mocktail - welcome to the community forums!

If you are trying to perform user management on your organization, you won’t be able to use the BW CLI. The CLI is designed to work with your vault contents, but user management or other organizational management tasks must be performed using the web vault interface, and cannot be accomplished using the Bitwarden app, browser extension, or CLI.

Hi, @dh024 , could you please shed light on either product plans or updates with this feature.

We are about to migrate to Bitwarden Enterprise, but web only (i.e. manual) creation of collections and user permissions assignment to them is absolute blocker for any mid-size 100+ company. 1password cli has it easily and (alongside with ssh-agent) it is the last killer-feature that prevents us from migration.

Could it be ANY kind of automation/api? In my understanding web interface works with back-end via api calls. Could it be reused?

UPD: Looks like I got it. We could use bw cli to create collections and bitwarden API to manage user access to those collections by their ids, am I right? If yes, you gonna have a new customer soon.