aboutsummaryrefslogtreecommitdiff
path: root/user/README.md
blob: bede75a4580c9386b2468aa8a41a0054b3208c2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# User Policies
User policies apply to users and determine the read/write access they will have.
This is useful to avoid needing to configure each bucket separately.

## Policies
The following policies are available:

* useronly.json: Grants the user access to the bucket of their name.
  For example, the user `foo` will be granted access to the bucket `foo` only.
* userprefix.json: Grants the user access to buckets prefixed by their name.
  For example, the user `foo` will be granted access to the buckets
  `foo` and `foobar` but not `barfoo`.

## Using
Apply these policies as so:

1. Download the file.
2. `mcli admin policy add MYMINIO NAME NAME.json`
3. `mcli admin policy set MYMINIO NAME user=USER`