File Access
This command is used to manage the access to a file in the Mica file system. This access affects the published version.
mica access-file PATH <CREDENTIALS> [OPTIONS] [EXTRAS]
Arguments
Argument |
Description |
---|---|
|
Path to the file in the Mica file system |
Options
Option |
Description |
---|---|
|
Add an access |
|
Delete an access |
|
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
Add access for user demouser on demo individual-study files:
mica access-file /individual-study/demo --mica http://mica-demo.obiba.org --user administrator --password password --type USER --subject demouser --add
Remove the above access:
mica access-file /individual-study/demo --mica http://mica-demo.obiba.org --user administrator --password password --type USER --subject demouser --delete