System Permission
Manage global system permissions.
opal perm-system <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: |
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-project permission for subject demouser:
opal perm-system --opal https://opal-demo.obiba.org --user administrator --password password --type USER --subject demouser --permission add-project --add
Remove the above permission:
opal perm-system --opal https://opal-demo.obiba.org --user administrator --password password --type USER --subject demouser --delete