Manage roles

Who: JIMM controller admin

See also: Role

Note

This guide assumes you have the jaas plugin installed. See here for more information.

Preview an example workflow
# Create a role
juju add-role myrole

# Verify that the role has been created successfully:
juju list-roles

# Give the role admin access to a model:
juju add-permission role-model-admin#assignee administrator [email protected]/foo

# Rename the role to better match its function:
juju rename-role model-admin

# Grant Alice access to the role
juju add-permission [email protected] assignee role-model-admin

# Verify that Alice's access to the role has been granted successfully:
juju check-permission [email protected] administrator [email protected]/foo

Add a role

To add a new role to your JIMM controller, use the add-role command followed by the name you want to assign to the role. For example:

juju add-role model-admin

See more: juju add-role

View all the current roles

To view all the current roles, run the list-roles command. For example:

juju list-roles [options]

See more: juju list-roles

Manage an entity’s relation to a role

See Manage relations.

Manage a role’s relation to an entity

See Manage relations.

Rename a role

To rename a role, run the rename-role command followed by the old name and the new name. For example:

juju rename-role model-admin model-writer

See more: juju rename-role

Remove a role

To remove a role from a JIMM controller, run the remove-role command followed by the name of the role. For example:

juju remove-role model-admin

See more: juju remove-role