Get User
Request
GET <REST API URL>/users/{user id}?fields=string
Parameter | Description |
---|---|
fields | Optional query parameter. Specifies a subset of the fields to be returned. Use Fields Syntax to define subset. |
Response
Response body
user
extends authorityHolder
{ "login": string, "banned": boolean, "banReason": string, "guest": boolean, "avatar": avatar, "profile": profile, "contacts": [contact, ...], "groups": [userGroup, ...], "details": [details, ...], "VCSUserNames": [vcsUserName, ...], "sshPublicKeys": [sshPublicKey, ...], "licenses": [license, ...], "creationTime": calendar, "lastAccessTime": calendar, "refreshTokens": [refreshToken, ...], "permanentTokens": [permanentToken, ...], "approvedScopes": [approvedScope, ...], "favoriteProjects": [project, ...], "id": string /* from authorityHolder */, "aliasIds": [string, ...] /* from authorityHolder */, "aliases": [alias, ...] /* from authorityHolder */, "name": string /* from authorityHolder */, "projectRoles": [projectRole, ...] /* from authorityHolder */, "transitiveProjectRoles": [projectRole, ...] /* from authorityHolder */ }
Last modified: 19 July 2017