Get User API

Retrieve information about the authenticated user

Users

Get User API

Retrieve detailed information about the currently authenticated user. Access account details, roles, and settings.

User Details

Account information.

Role & Access

Permissions.

Timestamps

Created and updated.


Endpoint Overview

QUERY/graphql

Retrieve information about the currently authenticated user.

Authentication:Bearer Token
Required scopes:user

GraphQL Query

query user {
  user {
    id
    email
    username
    resellerId
    role
    enabled
    radAccess
    radAccessClear
    createdAt
    updatedAt
  }
}

Variables:

{}

HTTP Request:

curl -X POST https://api.orbnet.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
    "query": "query user { user { id email username role enabled createdAt } }",
    "variables": {}
  }'

Response

200User Retrieved Successfully
{
  "data": {
    "user": {
      "id": 123,
      "email": "user@example.com",
      "username": "johndoe",
      "resellerId": 45,
      "role": "user",
      "enabled": true,
      "radAccess": true,
      "radAccessClear": false,
      "createdAt": "2023-01-01T12:00:00Z",
      "updatedAt": "2024-01-01T12:00:00Z"
    }
  }
}

Response Fields

idInt!

Unique identifier for the user.

emailString!

User's email address.

usernameString!

User's username.

resellerIdInt

ID of the associated reseller.

roleString!

User's role (e.g., user, admin).

enabledBoolean!

Whether the account is enabled.

radAccessBoolean!

Whether RADIUS access is enabled.

radAccessClearBoolean!

Whether RADIUS uses cleartext.

createdAtDateTime!

Account creation timestamp.

updatedAtDateTime!

Last update timestamp.



Authentication Required

This endpoint requires a valid bearer token and returns data for the authenticated user only.

View Your Profile

Get detailed profile information including contact details.

Get Profile