Add User To Group
POST {{baseUrl}}/rest/api/3/group/user?groupname=<string>
Adds a user to a group.
Permissions required: Site administration (that is, member of the site-admin group).
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
groupname | string | (Required) The name of the group (case sensitive). |
Request Body
{"name"=>"<string>", "accountId"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"name":"qui sit et","self":"http://WWIMCkQirAtqsSfPSns.hrm4T.Pu.Q8LjBYp-T2uMrE9qKvgfD0,FaiL6pYw.UOMbHP,NeMbZf","users":{"size":-41082842,"items":[{"self":"aliqua laboris","name":"dolor veniam nostrud","key":"elit aliqua deserunt Lorem","accountId":"dese","emailAddress":"magna","avatarUrls":{"16x16":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"24x24":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"32x32":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"48x48":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"displayName":"dolor mollit Duis","active":false,"timeZone":"amet commodo irure officia","accountType":"ad eiusmod"},{"self":"ut in Excepteur","name":"Excepteur veniam occaecat","key":"a","accountId":"","emailAddress":"Lorem mollit veniam","avatarUrls":{"16x16":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"24x24":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"32x32":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"48x48":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"displayName":"anim","active":true,"timeZone":"ullamco Lorem commodo dolor","accountType":"in"}],"max-results":51179685,"start-index":-16283289,"end-index":87926955},"expand":"aliquip ipsum in veniam dolo"}