How to Get a User Profile

To get the profile of a user, use the object_id and the same endpoint with a GET request.

https://api.nuubit.net/v1/users/<User ID>

cURL example:

curl -H "Accept: application/json" \
-H "Authorization:X-API-KEY d6e08bfa-92bc-4f3b-aea0-5c3ae2ced841" \
http://api.nuubit.net/v1/users/5811460024216b0f72f23aee

Response body to the get User request

{
"two_factor_auth_enabled" : false,
"access_control_list" : {
"dashBoard" : true,
"configure" : true,
"reports" : true,
"readOnly" : false,
"test" : true
},
"last_login_from" : "41.75.64.1",
"updated_at" : "2016-10-27T00:10:40.756Z",
"role" : "admin",
"lastname" : "Lee",
"companyId" : [
"581145bb24216b0f72f23aeb"
],
"firstname" : "Stan",
"theme" : "light",
"comment" : "",
"domain" : [],
"created_at" : "2016-10-27T00:10:40.756Z",
"email" : "stan@example.com",
"user_id" : "5811460024216b0f72f23aee",
"last_login_at" : "2016-10-27T00:11:08.024Z"
}

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk