-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] add information on how to assign admin users
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,3 +118,17 @@ Admin endpoints are only available to a set of whitelisted users specified in th | |
- `200` Query execute ok. | ||
- `401` Token user is not in the list of admins. | ||
- `500` Internal error due to DB failure. | ||
|
||
#### Configure Admin users | ||
|
||
The users that should have administrative access can be set in two ways: | ||
|
||
- As a comma separated list of user identifiers asigned to: `admin.users`. | ||
- As a JSON file containg a list of the user identities, the path to the file is assigned to: `admin.configFile`. This is the recommended way. | ||
|
||
```json | ||
[ | ||
"[email protected]" | ||
"[email protected]" | ||
] | ||
``` |