Add User to Users of a User Group
Request
POST <REST API URL>/usergroups/{user group id}/users?fields=string
Parameter | Description |
---|---|
fields | Optional query parameter. Specifies a subset of the fields to be returned. Use Fields Syntax to define subset. |
Request 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 */
}
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: 6 April 2017