# Role

Object · GraphQL API

Groups of rights assigned to the user.

## Fields

- `id` (`ID!`) — non-null: Unique identifier.
- `name` (`String`): A human-readable name.
- `isAccountAdmin` (`Boolean`): Whether the role grants account admin status.
- `rights` (`[Right!]`): The rights associated with the role.

## Used by

- [RoleConnectionEdge](/braintree/graphql/reference/types/role-connection-edge) — Object; node
- [User](/braintree/graphql/reference/types/user) — Object; roles
- [Viewer](/braintree/graphql/reference/types/viewer) — Object; roles

## GraphQL definition

```graphql
type Role {
  id: ID!
  name: String
  isAccountAdmin: Boolean
  rights: [Right!]
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)