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": "14dad881-2239-4661-95f3-3f04086b08e9",
    "name": "Sample group",
    "category": "576ccc32-2eb3-492b-8c5c-56b25243dbd8",
    "parent": "a88b0e18-5967-4b84-9875-1e9228b54137",
    "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>14dad881-2239-4661-95f3-3f04086b08e9</id>
    <name>Sample group</name>
    <category>576ccc32-2eb3-492b-8c5c-56b25243dbd8</category>
    <parent>a88b0e18-5967-4b84-9875-1e9228b54137</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>