PUT api/2.0/settings/security This function requires authentication

Description

Sets the security settings to the module with the ID specified in the request.

Parameters
Name Description Type Example
id
sent in body
Module ID string some text
enabled
sent in body
Specifies if the selected module is enabled or not Bool value true
subjects
sent in body
List of user/group IDs Collection of guids
collection
9924256A-739C-462b-AF15-E652A3B1B6EB
Example
PUT api/2.0/settings/security
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "id": "some text",
  "enabled": true,
  "subjects": [
    "9924256A-739C-462b-AF15-E652A3B1B6EB"
  ]
}
Returns

Security settings

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "WebItemId": "00000000-0000-0000-0000-000000000000",
      "Users": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "DisplayName": "Mike Zanyatski",
          "Title": "Manager",
          "AvatarSmall": "url to small avatar",
          "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
        }
      ],
      "Groups": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Group Name",
          "Manager": "Jake.Zazhitski"
        }
      ],
      "Enabled": true,
      "IsSubItem": false
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <WebItemId>00000000-0000-0000-0000-000000000000</WebItemId>
    <Users>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <DisplayName>Mike Zanyatski</DisplayName>
      <Title>Manager</Title>
      <AvatarSmall>url to small avatar</AvatarSmall>
      <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
    </Users>
    <Groups>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <Name>Group Name</Name>
      <Manager>Jake.Zazhitski</Manager>
    </Groups>
    <Enabled>True</Enabled>
    <IsSubItem>False</IsSubItem>
  </response>
</result>