user/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 Message
Authorization
Access JSON Web Token (GetCurrentUser)
Message Representation
{
"action": {string},
"requestId": {object}
}
Message Parameters
action | Yes | string | Action name: user/getCurrent |
requestId | No | object | Request unique identifier, will be passed back in the response message. |
userId | Yes | long | User identifier. |
Server Message
If successful, this method returns a User resource in the response body.
Message Representation
{
"action": {string},
"status": {string},
"requestId": {object},
"current": {
"id": {string},
"login": {string},
"role": {integer},
"status": {integer},
"lastLogin": {datetime},
"networks": [{
id: {integer},
name: {string},
description: {string}
}],
"data": {object},
"introReviewed": {boolean}
}
}
Property Name | Type | Description |
---|---|---|
action | string | Action name: user/getCurrent |
status | string | Operation execution status (success or error). |
requestId | object | Request unique identifier as specified in the request message. |
current | object | Current user object. |
current.id | integer | User identifier. |
current.login | string | User login using during authentication. |
current.role | integer | User role. Available values: 0: Administrator role 1: Client role |
current.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 |
current.lastLogin | datetime | User last login timestamp (UTC). |
current.networks | array | Array of networks associated with the user |
current.networks[].id | integer | Network identifier. |
current.networks[].name | string | Network display name. |
current.networks[].description | string | Network description. |
current.data | object | User data, a JSON object with an arbitrary structure. |
current.introReviewed | boolean | Indicates if user reviewed an intro. |
Updated less than a minute ago