Open michaelgaida opened 8 years ago
POST /api/v1/users/31/roles/
"POST": {
"id": {
"help_text": "Database ID for this role.",
"type": "integer",
"label": "ID"
},
"disassociate": {
"help_text": "Provide to remove this role.",
"type": "integer",
"label": "Disassociate"
}
There is no way to create a role which to relate to the user, but I tested successful that the creation of a template automatically creates 3 roles which can be than related to the user:
GET /api/v1/roles
It would be handy to be able to give a user permissions to execute a template.
this could look like that:
template_permissions --user "hwurst" --template-name "metzger" --permission read
template_permissions --user "hwurst" --template-name "metzger" --permission admin
template_permissions --user "hwurst" --template-name "metzger" --permission execute