---
# System prepended metadata

title: Membrane Roles zome

---

# Membrane Roles zome

## Entries

```mermaid
graph TD
  subgraph path
    all_roles.administrator
    all_roles.editor
  end
  subgraph agents
    all_roles.administrator-->AlicePubKey
    all_roles.editor-->AlicePubKey
    all_roles.editor-->BobPubKey
    BobPubKey-->|has_role|all_roles.editor
  end
```

## ZomeFunctions

`assign_role(role, agent_pub_key)`*
`get_assigned_agents_for_role(role) -> Vec<AgentPubKey>`*


`unassign_role(role, agent_pub_key)`

`get_all_roles() -> Vec<string>`

`get_agent_roles(agent_pub_key) -> Vec<string>`

