DocScoDoc/docs/samples/sample_roles.json.md
2022-08-11 18:19:20 +02:00

136 lines
3.0 KiB
Markdown

### roles
#### GET /roles
```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"
]
},
{
"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"
]
}
]
```