Manage relations

See also: Relation

Add a relation

Given two entities A and B, to add a relation between them run the add-permission command followed by the tag of A, the desired B relation, and the tag of B. For example, to add a relation where you make user alice@canonical.com a member of the mygroup group:

juju add-permission [email protected] member group-mygroup

Verify a relation

Given two entities A and B, to verify that there is a specific relation between them, run the check-permission command followed by the tag of A, the relation, and the tag of B. For example:

juju check-permission [email protected] administrator controller-aws-controller-1

View all the current relations

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

juju list-permissions [options]

Remove a relation

Given two entities A and B and a pre-existing relation between them, to remove the relation, run the remove-permission command followed by the tag of A, the relation, and the tag of B. For example:

juju remove-permission [email protected] member group-mygroup