Home | Trees | Indices | Help |
|
---|
|
object --+ | s3rest.S3Method --+ | S3RoleManager
REST Method to manage user roles and permission rules
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Static Methods | |||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
Entry point for REST interface.
|
List or export roles
|
Configure action buttons for role list
|
Create, read, update a role NB this function must be restricted to ADMINs (in apply_method) |
Extract the permission rules for a role
|
Create or update a role from a role form
|
Update the permission rules for a role
|
Duplicate an existing role NB this function must be restricted to ADMINs (in apply_method) |
Delete a role NB this function must be restricted to ADMINs (in apply_method) |
Assign/unassign roles to a user NB this function is accessible for non-ADMINs (e.g. ORG_ADMIN) |
Assign/unassign users to a role NB this function could be accessible for non-ADMINs (e.g. ORG_ADMIN) |
Get a dict of users the current user can assign to roles @param role_id: the target role ID @returns: a dict {user_id: {l:label, t:title, a:assignable, r:removable, u:unrestrictable, }, ...} NB a, r and u attributes only added if non-default |
Get a dict of roles the current user can manage @returns: a dict {role_id: {l:label, a:assignable, r:removable, u:unrestrictable, }, ...}, NB a, r and u attributes only added if non-default |
Get a dict of realms managed by the current user
|
Interactive import of roles (auth_roles.csv format) NB this function must be restricted to ADMINs (in apply_method) |
Export of roles (auth_roles.csv format) NB this function must be restricted to ADMINs (in apply_method) |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:50 2019 | http://epydoc.sourceforge.net |