DocScoDoc/docs/samples/sample_roles.json.md

136 lines
3.0 KiB
Markdown
Raw Normal View History

2022-08-06 22:27:01 +02:00
### roles
#### GET /roles
2022-08-06 22:27:01 +02:00
```json
[
{
"id": 1,
"role_name": "Observateur",
"permissions": [
"ScoObservateur"
]
},
{
"id": 2,
"role_name": "Ens",
"permissions": [
"ScoEntrepriseView",
"ScoEtudAddAnnotations",
"ScoAbsAddBillet",
"ScoAbsChange",
"ScoUsersView",
"ScoObservateur",
"ScoEnsView",
"ScoView"
]
},
{
"id": 3,
"role_name": "Secr",
"permissions": [
"ScoEditApo",
"ScoEntrepriseChange",
"ScoEntrepriseView",
"ScoEtudAddAnnotations",
"ScoEtudChangeAdr",
"ScoAbsAddBillet",
"ScoAbsChange",
"ScoUsersView",
"ScoObservateur",
"ScoView"
]
},
{
"id": 4,
"role_name": "Admin",
"permissions": [
"ScoEditApo",
"ScoEntrepriseChange",
"ScoEntrepriseView",
"ScoEtudAddAnnotations",
"ScoEtudInscrit",
"ScoEtudChangeGroups",
"ScoEtudChangeAdr",
"ScoAbsAddBillet",
"ScoAbsChange",
"ScoImplement",
"ScoEditAllEvals",
"ScoEditAllNotes",
"ScoEditFormationTags",
"ScoChangeFormation",
"ScoChangePreferences",
"ScoUsersView",
"ScoUsersAdmin",
"ScoObservateur",
"ScoEnsView",
"ScoView"
]
},
{
"id": 5,
"role_name": "RespPe",
"permissions": [
"ScoEditFormationTags"
]
},
{
"id": 6,
"role_name": "ObservateurEntreprise",
"permissions": [
"RelationsEntreprisesView"
2022-08-06 22:27:01 +02:00
]
},
{
"id": 7,
"role_name": "UtilisateurEntreprise",
"permissions": [
"RelationsEntreprisesCorrespondants",
"RelationsEntreprisesChange",
"RelationsEntreprisesView"
]
},
{
"id": 8,
"role_name": "AdminEntreprise",
"permissions": [
"RelationsEntreprisesCorrespondants",
"RelationsEntreprisesValidate",
"RelationsEntreprisesSend",
"RelationsEntreprisesChange",
"RelationsEntreprisesView"
]
},
{
"id": 10,
"role_name": "SuperAdmin",
"permissions": []
},
{
"id": 9,
"role_name": "LecteurAPI",
"permissions": [
"ScoEtudChangeGroups",
"ScoAbsAddBillet",
"ScoUsersView",
"ScoView"
]
},
{
"id": 11,
"role_name": "UsersViewer",
"permissions": [
"ScoUsersView",
"ScoView"
]
},
{
"id": 12,
"role_name": "Viewer",
"permissions": [
"ScoView"
2022-08-06 22:27:01 +02:00
]
}
]
```