getCurrent

Gets information about user and its assigned networks.

Only administrators are allowed to get information about any user. User-level accounts can only retrieve information about themselves.

Request

HTTP Request

GET /user/current

Authorization

Access JSON Web Token (GetCurrentUser)

Request Body

Do not supply a request body with this method.

Response

If successful, this method returns a User resource in the response body.

Property Name

Type

Description

id

integer

User identifier.

login

string

User login using during authentication.

role

integer

User role. Available values:

  • 0: Administrator role
  • 1: Client role

status

integer

User status. Available values:

  • 0: The user is active
  • 1: The user has been locked out due to invalid login attempts
  • 2: The user has been disabled

lastLogin

datetime

User last login timestamp (UTC).

networks

array

Array of networks associated with the user

networks[].id

integer

Network identifier.

networks[].name

string

Network display name.

networks[].description

string

Network description.

data

object

User data, a JSON object with an arbitrary structure.

introReviewed

boolean

Indicates if user reviewed an intro.