Details
-
Bug
-
Resolution: Duplicate
-
Trivial
-
None
-
None
-
1
Description
https://docs.couchbase.com/server/7.0/tools/cbexport-json.html states
"u,-username <username>
The username for cluster authentication. The user must have the appropriate privileges to read the bucket in which data will be exported from."
However, if all permission minus Full Admin are granted to a user:
Data Reader [*:*:*] , Query Select [*:*:*] , Query CURL Access , Security Admin , Search Admin [*] , XDCR Inbound [*] , Manage Scope External Functions [*:*] , External Stats Reader , Sync Gateway [*] , Analytics Manager [*] , Data Writer [*:*:*] , Manage Global Functions , Execute Scope External Functions [*:*] , Analytics Reader , Query Update [*:*:*] , Cluster Admin , Data DCP Reader [*:*:*] , Search Reader [*:*:*] , Execute Scope Functions [*:*] , Views Reader [*] , Views Admin [*] , Manage Collections in Scope [*:*] , Execute Global Functions , Query Delete [*:*:*] , Query Insert [*:*:*] , XDCR Admin , Analytics Admin , Application Access [*] , Data Backup & Restore [*] , Query System Catalog , Data Monitor [*:*:*] , Analytics Select [*:*:*] , Bucket Admin [*] , Manage Scope Functions [*:*] , Manage Global External Functions , Execute Global External Functions , Query Manage Index [*:*:*] , Read-Only Admin
cbexport will provide this error(in 7.0 Beta):
2021-02-25T22:05:53.167-05:00 WARN: (REST) (Attempt 1) (GET) Request to endpoint '/api/v1/export' failed with status code 403 – rest.(*Request).Execute() at request.go:142
JSON export failed: failed to execute cluster operations: failed to transfer Eventing metadata: failed to get Eventing metadata: failed to get eventing metadata: failed to execute request:
Attachments
Issue Links
- duplicates
-
DOC-8264 cbexport requires Full Admin
- Resolved