Document Access
This command is used to manage the access to a document. This access affects the published version and also applies to all associated files in their published version (unless the access to the files is explicitly excluded).
mica access-<DOCUMENT> ID <CREDENTIALS> [OPTIONS] [EXTRAS]
Arguments
Argument |
Description |
---|---|
|
Mica document: |
|
Identifier of the document |
Options
Option |
Description |
---|---|
|
Add an access |
|
Delete an access |
|
Do not grant access to associated files |
|
Subject name to which the access will be granted |
|
Subject type: |
Credentials
Authentication is done by username/password credentials.
Option |
Description |
---|---|
|
Mica server base url. |
|
User name. User with appropriate permissions is expected depending of the REST resource requested. |
|
User password. |
Extras
Option |
Description |
---|---|
|
Show the command help’s message |
|
Verbose output |
Example
Network
Add access for the user demouser on the network demo:
mica access-network --mica http://mica-demo.obiba.org --user administrator --password password --type USER --subject demouser --add demo
Remove the above permission:
mica access-network --mica http://mica-demo.obiba.org --user administrator --password password --type USER --subject demouser --delete demo
Individual Study
Add access for the user demouser on the individual study demo:
mica access-individual-study --mica http://mica-demo.obiba.org --user administrator --password password --type USER --subject demouser --add demo
Remove the above permission:
mica access-individual-study --mica http://mica-demo.obiba.org --user administrator --password password --type USER --subject demouser --delete demo