Role Manager and Roles

class keystoneclient.v2_0.roles.Role(manager, info, loaded=False)

Represents a Keystone role

class keystoneclient.v2_0.roles.RoleManager(api)

Manager class for manipulating Keystone roles

add_user_role(user, role, tenant=None)

Adds a role to a user.

If tenant is specified, the role is added just for that tenant, otherwise the role is added globally.

create(name)

Create a role.

delete(role)

Delete a role.

list()

List all available roles.

remove_user_role(user, role, tenant=None)

Removes a role from a user.

If tenant is specified, the role is removed just for that tenant, otherwise the role is removed from the user’s global roles.

resource_class

alias of Role

Previous topic

User Manager and Users

Next topic

Service Manager and Services

This Page