# Viewer

Object · GraphQL API

Details about the user and merchant authenticated in this request.

## Fields

- `id` (`ID`) — deprecated since 2019-05-29: Unique identifier.
- `email` (`String`) — deprecated since 2019-05-29: Email address.
- `status` (`UserStatus`) — deprecated since 2019-05-29: Current status.
- `name` (`String`) — deprecated since 2019-05-29: Full name.
- `roles` (`[Role!]`) — deprecated since 2019-05-29: Associated roles.
- `user` (`User`): Details about the authenticated user.
- `merchant` (`Merchant`): Details about the authenticated merchant.
- `rights` (`[Right!]`): Associated rights based on authentication.

## Used by

- [viewer](/braintree/graphql/reference/queries/viewer) — Query

## GraphQL definition

```graphql
type Viewer {
  id: ID @deprecated(reason: "Use `user` for id instead.")
  email: String @deprecated(reason: "Use `user` for email instead.")
  status: UserStatus @deprecated(reason: "Use `user` for status instead.")
  name: String @deprecated(reason: "Use `user` for name instead.")
  roles: [Role!] @deprecated(reason: "Use `user` for roles instead.")
  user: User
  merchant: Merchant
  rights: [Right!]
}
```

---

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