Get user details
  • 02 Feb 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Get user details

  • Dark
    Light

GET /teams/{userId}

Gets the details of a user


Header

ParameterTypeDescription
api_tokenstringYou can get the REST API from Settings > Advanced > API tokens.


Route Parameters

ParameterRequiredTypeDescription
userId
YesstringThe ID of the user

Sample Response

{
	"result": {
		"id": "5ad03d2b6d59890e8635a596",
		"first_name": "Danny",
		"last_name": "Brown",
		"email_id": "danny.brown@document360.io",
		"profile_logo_url": "https://cdn.document360.io/users/87bdf6bf-aa19-480f-aab3-2c6bba1dd5c1.JPG?sv=2020-08-04&st=2021-12-27T10%3A04%3A48Z&se=2021-12-27T10%3A05%3A18Z&sr=b&sp=r&sig=GnTDMCRKT%2FjHiHLNx7tEgt2gYpD3DO8sJmIkmrGU75c%3D",
		"last_sign_in": "2021-08-20T15:16:54.475Z",
		"portal_role_infos": [
			{
				"role_name": "Owner",
				"role_id": "c1b8ae08-78d5-41d9-b3c4-3b0892b05ca8",
				"group_name": null
			}
		],
		"content_role_infos": [
			{
				"version_access_info": null,
				"language_access_info": null,
				"category_access_info": null,
				"article_access_info": null,
				"access_scope_level": 3,
				"role_name": "Editor",
				"role_id": "62810dc1-2d21-422e-bdfb-c3daebf91dd3",
				"group_name": null
			}
		],
		"associated_groups": []
	},
	"extension_data": null,
	"context": null,
	"success": true,
	"errors": [],
	"warnings": [],
	"information": []
}


Response Data

ParameterTypeDescription
user_idstringThe ID of the user
first_namestringFirst name of the user
last_namestringLast name of the user
email_idstringEmail address of the user
profile_logo_urlstringProfile image URL of the user
last_login_atDateTimeLast login date of the user
portal_roleobjectThe portal role of the user
content_rolesobject[]The list of content roles of the user

Response Data > portal_role

ParameterTypeDescription
role_namestringThe name of the portal role
role_idstringThe ID of the portal role

Response Data > content_roles

ParameterTypeDescription
role_namestringThe name of the content role
role_idstringThe ID of the content role
access_scope_levelenumThe access level for the user. 0-None, 1-Category, 2-Version, 3-Project, 4-Language
version_access
objectVersion details 
language_access
object
Language details
category_access
object
Category details
article_access
object
Article details

Response Data > content_roles > version_access

ParameterTypeDescription
version_name
stringThe name of the project version
version_id
stringThe project version ID to which the user has access

Response Data > content_roles > language_access

ParameterTypeDescription
language_id
stringThe language ID for which the user has access
language_name
stringThe name of the language
language_code
stringThe code of the language

Response Data > content_roles > category_access

ParameterTypeDescription
category_id
stringThe category ID for which the user has access
category_name
stringThe name of the category

Response Data > content_roles > article_access

ParameterTypeDescription
article_namestringThe name of the article

Was this article helpful?

What's Next