|
3 | 3 | The administration panel is a feature in InvenioRDM introduced in v10 that provides a graphical user interface for managing your instance. It is designed to be used by administrators and superusers of the repository. |
4 | 4 | For more technical details you can read the [developer guide to the InvenioRDM administration panel](../maintenance/internals/administration_panel.md), detailing its programmatic interface and usage. |
5 | 5 |
|
| 6 | +## Access control |
| 7 | + |
| 8 | +Access to the administration panel is controlled by two Invenio actions: |
| 9 | + |
| 10 | +| Action | Controls | |
| 11 | +|--------|----------| |
| 12 | +| `admin-view` | Visibility of the **"Administration"** link in the user menu and access to the dashboard | |
| 13 | +| `administration-access` | Access to **individual admin views** (records, users, OAI-PMH sets, etc.) | |
| 14 | + |
| 15 | +### Granting full administrator access |
| 16 | + |
| 17 | +To give a role full access to the administration panel and all its views, grant both actions: |
| 18 | + |
| 19 | +```shell |
| 20 | +invenio roles create administration |
| 21 | +invenio access allow admin-view role administration |
| 22 | +invenio access allow administration-access role administration |
| 23 | +``` |
| 24 | + |
| 25 | +Then assign the role to a user: |
| 26 | + |
| 27 | +```shell |
| 28 | +invenio roles add <email> administration |
| 29 | +``` |
| 30 | + |
| 31 | +### Granting access to specific views only |
| 32 | + |
| 33 | +You can grant a role access to the administration panel entry point without giving it access to all admin views. This is useful for roles that only need access to certain sections (e.g. a curator role that only manages specific resources): |
| 34 | + |
| 35 | +```shell |
| 36 | +invenio roles create curator |
| 37 | +invenio access allow admin-view role curator |
| 38 | +``` |
| 39 | + |
| 40 | +Individual admin views can then be restricted to specific roles by overriding the `permission` attribute on the view class. See the [developer guide](../maintenance/internals/administration_panel.md) for details. |
| 41 | + |
| 42 | +!!! info |
| 43 | + |
| 44 | + See [Create and assign roles](../operate/customize/users.md#create-and-assign-roles) for more information on managing user roles. |
| 45 | + |
| 46 | +--- |
| 47 | + |
6 | 48 | **As an administrator** you can access the administration panel at `/administration`. This is also available through the user menu in the top right corner of your instance: |
7 | 49 |
|
8 | 50 |  |
|
0 commit comments