Get Started
Portal api methods
Help

PUT api/2.0/group/{groupid}/members/{newgroupid} This function requires authentication

Description

Move all the users from the selected group to another one specified

Parameters
Name Description Type Example
groupid
sent in url
ID of group to move from guid 9924256A-739C-462b-AF15-E652A3B1B6EB
newgroupid
sent in url
ID of group to move to guid 9924256A-739C-462b-AF15-E652A3B1B6EB
Example
PUT api/2.0/group/9924256A-739C-462b-AF15-E652A3B1B6EB/members/9924256A-739C-462b-AF15-E652A3B1B6EB
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

Group info which users were moved

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": "83cba674-cb20-4f78-b8c8-868742400d62",
    "name": "Sample group",
    "category": "a7e7943a-ce27-4ae1-bf20-f9a227458cb5",
    "parent": "a7e28dc3-151f-4430-a162-d6d4463b408a",
    "description": null,
    "manager": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "members": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      }
    ]
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>83cba674-cb20-4f78-b8c8-868742400d62</id>
    <name>Sample group</name>
    <category>a7e7943a-ce27-4ae1-bf20-f9a227458cb5</category>
    <parent>a7e28dc3-151f-4430-a162-d6d4463b408a</parent>
    <description />
    <manager>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </manager>
    <members>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </members>
  </response>
</result>