Bases: object
Add a role to a user within given tenant.
Raises keystone.exception.Conflict: | |
---|---|
If a duplicate role assignment exists. |
Check an assignment/grant role id.
Raises keystone.exception.RoleAssignmentNotFound: | |
---|---|
If the role assignment doesn’t exist. | |
Returns: | None or raises an exception if grant not found |
Create a new assignment/grant.
If the assignment is to a domain, then optionally it may be specified as inherited to owned projects (this requires the OS-INHERIT extension to be enabled).
Delete assignments/grants.
Raises keystone.exception.RoleAssignmentNotFound: | |
---|---|
If the role assignment doesn’t exist. |
Delete all assignments for a group.
Raises keystone.exception.RoleNotFound: | |
---|---|
If the role doesn’t exist. |
Delete all assignments for a project.
Raises keystone.exception.ProjectNotFound: | |
---|---|
If the project doesn’t exist. |
Delete all assignments for a user.
Raises keystone.exception.RoleNotFound: | |
---|---|
If the role doesn’t exist. |
List role ids for assignments/grants.
Return a list of role assignments for actors on targets.
Available parameters represent values in which the returned role assignments attributes need to be filtered on.
Remove a role from a user within given tenant.
Raises keystone.exception.RoleNotFound: | |
---|---|
If the role doesn’t exist. |
Bases: keystone.assignment.backends.base.AssignmentDriverBase
Bases: object
Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.DictBase
Override parent method with a simpler implementation.
RoleAssignment doesn’t have non-indexed ‘extra’ attributes, so the parent implementation is not applicable.