Skip to main content

ONLYOFFICE DocSpace People API

The browsable version of this reference, with a request builder and code samples, is published at https://api.onlyoffice.com/docspace/api-backend/usage-api/.

All URIs are relative to https://yourportal.onlyoffice.com, where the host is the address of your DocSpace instance.

Email​

MethodHTTP requestDescription
changeUserEmailPUT /api/2.0/people/{userId}/emailChange a user email
sendEmailChangeInstructionsPOST /api/2.0/people/emailSend instructions to change email

Guests​

MethodHTTP requestDescription
approveGuestShareLinkPOST /api/2.0/people/guests/share/approveApprove a guest sharing link
deleteGuestsDELETE /api/2.0/people/guestsRemove guest relations

Password​

MethodHTTP requestDescription
changeUserPasswordPUT /api/2.0/people/{userId}/passwordChange a user password
sendUserPasswordPOST /api/2.0/people/passwordRemind a user password

Photos​

MethodHTTP requestDescription
createMemberPhotoThumbnailsPOST /api/2.0/people/{userId}/photo/thumbnailsCreate photo thumbnails
deleteMemberPhotoDELETE /api/2.0/people/{userId}/photoDelete a user photo
getMemberPhotoGET /api/2.0/people/{userId}/photoGet a user photo
updateMemberPhotoPUT /api/2.0/people/{userId}/photoUpdate a user photo
uploadMemberPhotoPOST /api/2.0/people/{userId}/photoUpload a user photo

Profiles​

MethodHTTP requestDescription
addMemberPOST /api/2.0/peopleAdd a user
checkUserExistsByEmailGET /api/2.0/people/existsCheck whether an email is taken
deleteMemberDELETE /api/2.0/people/{userId}Delete a user
deleteProfileDELETE /api/2.0/people/@selfClose my own profile
getAllProfilesGET /api/2.0/peopleGet the active profiles
getClaimsGET /api/2.0/people/tokendiagnosticsGet user claims
getProfileByEmailGET /api/2.0/people/emailGet a profile by user email
getProfileByUserIdGET /api/2.0/people/{userId}Get a profile by user ID
getSelfProfileGET /api/2.0/people/@selfGet my profile
inviteUsersPOST /api/2.0/people/inviteInvite users
removeUsersPUT /api/2.0/people/deleteDelete users
resendUserInvitesPUT /api/2.0/people/inviteResend activation emails
updateMemberPUT /api/2.0/people/{userId}Update a user
updateMemberCulturePUT /api/2.0/people/{userId}/cultureUpdate a user culture

Quota​

MethodHTTP requestDescription
resetUsersQuotaPUT /api/2.0/people/resetquotaReset a user quota limit
updateUserQuotaPUT /api/2.0/people/userquotaChange a user quota limit
MethodHTTP requestDescription
getAccountsEntriesWithFilesSharedGET /api/2.0/accounts/file/{id}/searchSearch accounts for a file
getAccountsEntriesWithFoldersSharedGET /api/2.0/accounts/folder/{id}/searchSearch accounts for a folder
getAccountsEntriesWithRoomsSharedGET /api/2.0/accounts/room/{id}/searchSearch accounts for a room
getSearchGET /api/2.0/people/@search/{query}Search users
getSimpleByFilterGET /api/2.0/people/simple/filterFilter users in brief
getUsersWithFilesSharedGET /api/2.0/people/file/{id}Search users for a file
getUsersWithFoldersSharedGET /api/2.0/people/folder/{id}Search users for a folder
getUsersWithRoomSharedGET /api/2.0/people/room/{id}Search users for a room
searchUsersByExtendedFilterGET /api/2.0/people/filterFilter users in detail
searchUsersByQueryGET /api/2.0/people/searchSearch users by query
searchUsersByStatusGET /api/2.0/people/status/{status}/searchSearch users by status filter

Theme​

MethodHTTP requestDescription
changePortalThemePUT /api/2.0/people/themeChange the portal theme
getPortalThemeGET /api/2.0/people/themeGet the portal theme

Third-party accounts​

MethodHTTP requestDescription
getThirdPartyAuthProvidersGET /api/2.0/people/thirdparty/providersGet third-party providers
linkThirdPartyAccountPUT /api/2.0/people/thirdparty/linkaccountLink a third-party account
signupThirdPartyAccountPOST /api/2.0/people/thirdparty/signupSign up with a provider
unlinkThirdPartyAccountDELETE /api/2.0/people/thirdparty/unlinkaccountUnlink a third-party account

User data​

MethodHTTP requestDescription
getDeletePersonalFolderProgressGET /api/2.0/people/delete/personal/progressGet the personal folder deletion progress
getReassignProgressGET /api/2.0/people/reassign/progress/{userId}Get the reassignment progress
getRemoveProgressGET /api/2.0/people/remove/progress/{userId}Get the deletion progress
necessaryReassignGET /api/2.0/people/reassign/necessaryCheck data for reassignment need
sendInstructionsToDeletePUT /api/2.0/people/self/deleteSend the deletion instructions
startDeletePersonalFolderPOST /api/2.0/people/delete/personal/startDelete the personal folder
startReassignPOST /api/2.0/people/reassign/startStart the data reassignment
startRemovePOST /api/2.0/people/remove/startStart the data deletion
terminateReassignPUT /api/2.0/people/reassign/terminateTerminate the data reassignment
terminateRemovePUT /api/2.0/people/remove/terminateTerminate the data deletion

User status​

MethodHTTP requestDescription
getByStatusGET /api/2.0/people/status/{status}Get profiles by status
updateUserActivationStatusPUT /api/2.0/people/activationstatus/{activationStatus}Set my activation status
updateUserStatusPUT /api/2.0/people/status/{status}Change a user status

User type​

MethodHTTP requestDescription
getUserTypeUpdateProgressGET /api/2.0/people/type/progress/{userId}Get the user type change progress
startUserTypeUpdatePOST /api/2.0/people/typeStart updating user type
terminateUserTypeUpdatePUT /api/2.0/people/type/terminateTerminate updating user type
updateUserTypePUT /api/2.0/people/type/{type}Change a user type

Authorization​

cookieAuth​

  • Type: API key
  • API key parameter name: asc_auth_key
  • Location:

bearerAuth​

  • Type: HTTP Bearer Token authentication

asc_auth_key​

  • Type: API key
  • API key parameter name: asc_auth_key
  • Location:

Basic​

  • Type: HTTP basic authentication

Bearer​

  • Type: HTTP Bearer Token authentication (JWT)

ApiKeyBearer​

  • Type: API key
  • API key parameter name: ApiKeyBearer
  • Location: HTTP header

OAuth2​

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL:
  • Scopes:
    • read: Read access to protected resources
    • write: Write access to protected resources

OpenId​

x-signature​

  • Type: API key
  • API key parameter name: x-signature
  • Location: