Device Connectivity Made Easy

Focus on your product and innovation and leave communication and management to DeviceHive.

Get Started

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/{id}

Parameters

Parameter Name

Required

Type

Description

id

Yes

long

User identifier. Use the 'current' keyword to get information about the current user.

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[].network

object

Associated network object.

networks[].network.id

integer

Network identifier.

networks[].network.name

string

Network display name.

networks[].network.description

string

Network description.

introReviewed

boolean

Indicates if user reviewed an intro.

Updated less than a minute ago

get


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.