yasuki_web.auth.admin_set_role#

async admin_set_role(user_id, body, admin=Depends(dependency=<function require_admin>, use_cache=True, scope=None))[source]#

Set an account’s role to one of the defined roles (422 if it is not defined). Admin-only.

Changing your own role is refused, so an admin cannot demote themselves out of the dashboard.