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 NameTypeDescription
idintegerUser identifier.
loginstringUser login using during authentication.
roleintegerUser role. Available values:
0: Administrator role
1: Client role
statusintegerUser 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
lastLogindatetimeUser last login timestamp (UTC).
networksarrayArray of networks associated with the user
networks[].idintegerNetwork identifier.
networks[].namestringNetwork display name.
networks[].descriptionstringNetwork description.
dataobjectUser data, a JSON object with an arbitrary structure.
introReviewedbooleanIndicates if user reviewed an intro.