Datasource Permission
Manage permissions on the project’s datasource (the set of tables).
opal perm-datasource <CREDENTIALS> [OPTIONS] [EXTRAS]
Options
Option |
Description |
---|---|
|
Fetch permissions |
|
Add a permission |
|
Delete a permission |
|
Permission to apply: |
|
Subject name to which the permission will be granted (required on add/delete) |
|
Subject type: |
|
Project name on which the permission is to be set |
Credentials
Authentication can be done by username/password credentials OR by personal access token OR by certificate/private key pair (two-way SSL authentication).
Option |
Description |
---|---|
|
Opal server base url |
|
Credentials auth: user name (requires a password) |
|
Credentials auth: user password (requires a user name) |
|
Token auth: user’s personal access token |
|
Two-way SSL auth: certificate/public key file (requires a private key) |
|
Two-way SSL auth: private key file (requires a certificate) |
Extras
Option |
Description |
---|---|
|
Show the command help’s message. |
|
Verbose output. |
|
Output pretty-print JSON |
Example
Add add-table permission for subject demouser on datashield project:
opal perm-datasource --opal https://opal-demo.obiba.org --user administrator --password password --type USER --subject demouser --permission add-table --project datashield --add
Remove the above permission:
opal perm-datasource --opal https://opal-demo.obiba.org --user administrator --password password --type USER --subject demouser --project datashield --delete