viewer

Current user, if any.

Returns

User
User
Collapse
  • id
    Username.
  • Whether the user has org-wide admin privileges.
  • avatarURL
    URL of the user avatar.
  • email
    Email of the user, may be empty.
  • Temporary access token as a string.
  • Full name of the GitHub user.
  • since
    Timestamp of the first login, only populated for human users.
  • validUntil
    Unix timestamp of token validity expiration.
  • Team names which the user has access to.
  • cannotEvaluateAccessPolicies
    Whether the access policies can be evaluated for this user.
  • identityProvider
    Identity provider.
  • isFirstUser
    Indicates whether the user is the first to log in for this account. Is guaranteed to be true only for the first user to log in and before any other user has logged in.