Maltazar
(Martin)
September 17, 2022, 2:03pm
1
Hi everyone
im struggling to create an organization though the bitwarden cli
here is what I do:
export jsondata=$(echo ‘{“organizationId”: “1e098c93-dfe3-46a4-ae10-8e1cfa891efd”, “name”:“mytestOrg”}’ | bw encode)
bw create org-collection $jsondata --organizationid 1e098c93-dfe3-46a4-ae10-8e1cfa891efd
The error is then
No encryption key for this organization.
What am I missing?
The template json of an org-collection does not have anything with an encryptionkey… so im mission something…
Thanks for your time
Maltazar
(Martin)
September 18, 2022, 1:38pm
2
Anyone? - I would be very pleased with some help
dh024
(David H )
September 18, 2022, 1:52pm
3
Are there any clues provided in this github thread, @Maltazar ?
opened 10:01AM - 11 Apr 19 UTC
closed 12:20PM - 11 Apr 19 UTC
When we try to create a new Collection with a user that has the Manager role, it… doesn't work, but we don't get any feedback from the Web Vault.
We do observe these errors in the browser console though:
```
ERROR Error: "Uncaught (in promise): l: {"response":{"Object":"error","Message":"Resource not found.","ValidationErrors":null,"ExceptionMessage":null,"ExceptionStackTrace":null,"InnerExceptionMessage":null},"message":"Resource not found.","validationErrors":null,"statusCode":404}"
core.js:15714
```
```
ERROR Error: "Uncaught (in promise): Error: No encryption key for this organization.
c</n.prototype.submit/</<@https://bitwarden.company.net/app/main.bbd65ec7501159b30189.js:1:609407
i/</<@https://bitwarden.company.net/app/main.bbd65ec7501159b30189.js:1:607020
i/<@https://bitwarden.company.net/app/main.bbd65ec7501159b30189.js:1:606338
t</<@https://bitwarden.company.net/app/main.bbd65ec7501159b30189.js:1:606040
t@https://bitwarden.company.net/app/polyfills.bbd65ec7501159b30189.js:8:13933
t<@https://bitwarden.company.net/app/main.bbd65ec7501159b30189.js:1:605817
c</n.prototype.submit@https://bitwarden.company.net/app/main.bbd65ec7501159b30189.js:1:609291
P/<@https://bitwarden.company.net/app/main.bbd65ec7501159b30189.js:1:2231227
handleEvent@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:799:1489
handleEvent@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:806:1015
lg@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:726:1015
Dy/<@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:763:1501
Hu</t.prototype.subscribe/i<@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:431:701
d</t.prototype.__tryOrUnsub@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:1389:6332
d</t.prototype.next@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:1389:5474
u</t.prototype._next@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:1389:4484
u</t.prototype.next@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:1389:4167
d</t.prototype.next@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:1537:27541
Hu</t.prototype.emit@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:431:157
Oe</t.prototype.onSubmit@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:1340:17687
P/<@https://bitwarden.company.net/app/main.bbd65ec7501159b30189.js:1:2231140
handleEvent@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:799:1489
handleEvent@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:806:1015
lg@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:726:1015
qg/<@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:734:2779
H/<@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:1453:235
c</t.prototype.invokeTask@https://bitwarden.company.net/app/polyfills.bbd65ec7501159b30189.js:8:7679
onInvokeTask@https://bitwarden.company.net/app/vendor.bbd65ec7501159b30189.js:624:997
c</t.prototype.invokeTask@https://bitwarden.company.net/app/polyfills.bbd65ec7501159b30189.js:8:7592
a</e.prototype.runTask@https://bitwarden.company.net/app/polyfills.bbd65ec7501159b30189.js:8:2849
s</e.invokeTask@https://bitwarden.company.net/app/polyfills.bbd65ec7501159b30189.js:8:8790
b@https://bitwarden.company.net/app/polyfills.bbd65ec7501159b30189.js:39:629
m@https://bitwarden.company.net/app/polyfills.bbd65ec7501159b30189.js:39:873
core.js:15714
```
By the way, shouldn't a Manager be able to create collections?
Maltazar
(Martin)
September 20, 2022, 11:20am
4
Yes I have looked at that, but in this case it’s a creation of a new organization and not a collection inside an already existing organization…
so it’s not what I was looking for…
Maltazar
(Martin)
September 20, 2022, 11:22am
5
but maybe thats the whole problem? - it’s not possible to create an organization in any other way than through the GUI?