Add Group to Groups of a User
Request
POST <REST API URL>/users/{user id}/groups?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
userGroup
extends authorityHolder
{ "description": string, "iconUrl": string, "autoJoin": boolean, "users": [user, ...], "ownUsers": [user, ...], "userCount": int, "parent": userGroup, "subgroups": [userGroup, ...], "project": project, "allUsers": boolean, "implicit": boolean, "queriedSingleton": boolean, "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
userGroup
extends authorityHolder
{ "description": string, "iconUrl": string, "autoJoin": boolean, "users": [user, ...], "ownUsers": [user, ...], "userCount": int, "parent": userGroup, "subgroups": [userGroup, ...], "project": project, "allUsers": boolean, "implicit": boolean, "queriedSingleton": boolean, "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