Uppdates the impersonation settings with the parameters specified in the request.
Name | Description | Type | Example |
enable
sent in body
|
Specifies whether impersonation is enabled or not | Bool value | true |
enableType
sent in body
|
Specifies for whom impersonation is enabled (DisableForAdmins, EnableForAllFullAdmins, or EnableWithLimits) | ASC.Web.Core.Utility.ImpersonateEnableType | |
onlyForOwnGroups
sent in body
|
Specifies if impersonation is enabled only for the current user groups or not | Bool value | true |
allowedAdmins
sent in body
|
List of admins who can be impersonated | System.Collections.Generic.List{System.Guid} | |
restrictionUsers
sent in body
|
List of users who cannot be impersonated | System.Collections.Generic.List{System.Guid} | |
restrictionGroups
sent in body
|
List of groups who cannot be impersonated | System.Collections.Generic.List{System.Guid} |
PUT api/2.0/security/impersonate/settings Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "enable": true, "enableType": null, "onlyForOwnGroups": true, "allowedAdmins": [ "9924256A-739C-462b-AF15-E652A3B1B6EB" ], "restrictionUsers": [ "9924256A-739C-462b-AF15-E652A3B1B6EB" ], "restrictionGroups": [ "9924256A-739C-462b-AF15-E652A3B1B6EB" ] }
Updated impersonation settings