Get Started
Usage API
More information

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

Description

Sets a user with the ID specified in the request as a manager.

Parameters
Name Description Type Example
groupid
sent in url
Group ID guid 9924256A-739C-462b-AF15-E652A3B1B6EB
userid
sent in body
User ID guid 9924256A-739C-462b-AF15-E652A3B1B6EB
Example
PUT api/2.0/group/9924256A-739C-462b-AF15-E652A3B1B6EB/manager
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "userid": "9924256A-739C-462b-AF15-E652A3B1B6EB"
}
Returns

Group information

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": "181228a5-0e9c-49a1-af4d-bb6ce1fd64a6",
    "name": "Sample group",
    "category": "4911a2a8-012d-4c62-89e1-6b6ddfd9df5a",
    "parent": "4db5b87b-6b8d-4a20-ae3c-c9e862fb1b09",
    "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>181228a5-0e9c-49a1-af4d-bb6ce1fd64a6</id>
    <name>Sample group</name>
    <category>4911a2a8-012d-4c62-89e1-6b6ddfd9df5a</category>
    <parent>4db5b87b-6b8d-4a20-ae3c-c9e862fb1b09</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>