Get Started
Portal api methods
Help

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

Description

Manages the group users deleting the current users and setting new ones instead

Parameters
Name Description Type Example
groupid
sent in url
Group ID guid 9924256A-739C-462b-AF15-E652A3B1B6EB
members
sent in body
User list Collection of guids
collection
9924256A-739C-462b-AF15-E652A3B1B6EB
Example
POST api/2.0/group/9924256A-739C-462b-AF15-E652A3B1B6EB/members
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "members": [
    "00000000-0000-0000-0000-000000000000"
  ]
}
Returns

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": "de461b98-146d-4c88-b53b-95b47161840c",
    "name": "Sample group",
    "category": "9740bea3-24d5-47e0-8263-cb0da4f73a08",
    "parent": "02c6dc67-d378-4286-9ea4-6260862fd24f",
    "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>de461b98-146d-4c88-b53b-95b47161840c</id>
    <name>Sample group</name>
    <category>9740bea3-24d5-47e0-8263-cb0da4f73a08</category>
    <parent>02c6dc67-d378-4286-9ea4-6260862fd24f</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>