Sets a new password to the user with the ID specified in the request.
Name | Description | Type | Example |
userid
sent in url
|
User ID | guid | 9924256A-739C-462b-AF15-E652A3B1B6EB |
Type
sent in body
|
Employee type (All, RoomAdmin, User, DocSpaceAdmin, Collaborator) | ASC.Core.Users.EmployeeType | |
IsUser
sent in body
|
Specifies if this is a guest or a user | System.Boolean | |
Email
sent in body
|
System.String | ||
Firstname
sent in body
|
First name | System.String | |
Lastname
sent in body
|
Last name | System.String | |
Department
sent in body
|
List of user departments | System.Guid[] | |
Title
sent in body
|
Title | System.String | |
Location
sent in body
|
Location | System.String | |
Sex
sent in body
|
Sex (male or female) | System.String | |
Birthday
sent in body
|
Birthday | ASC.Api.Core.ApiDateTime | |
Worksfrom
sent in body
|
Registration date (if it is not specified, then the current date will be set) | ASC.Api.Core.ApiDateTime | |
Comment
sent in body
|
Comment | System.String | |
Contacts
sent in body
|
List of user contacts | System.Collections.Generic.IEnumerable{ASC.Web.Api.Models.Contact} | |
Files
sent in body
|
Avatar photo URL | System.String | |
Password
sent in body
|
Password | System.String | |
PasswordHash
sent in body
|
Password hash | System.String | |
FromInviteLink
sent in body
|
Specifies if the user is added via the invitation link or not | System.Boolean | |
Key
sent in body
|
Key | System.String | |
CultureName
sent in body
|
Language | System.String | |
Target
sent in body
|
Target | System.Guid |
PUT api/2.0/people/%229924256A-739C-462b-AF15-E652A3B1B6EB%22/password Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "Type": "All", "IsUser": true, "Email": "some text", "Firstname": "some text", "Lastname": "some text", "Department": [ "9924256a-739c-462b-af15-e652a3b1b6eb", "98777e9c-f2a7-4e97-b314-ba9f92c2e882" ], "Title": "some text", "Location": "some text", "Sex": "some text", "Comment": "some text", "Files": "some text", "Password": "some text", "PasswordHash": "some text", "FromInviteLink": true, "Key": "some text", "CultureName": "some text", "Target": "9924256A-739C-462b-AF15-E652A3B1B6EB" }
Detailed user information
application/json
{ "status": 0, "response": { "FirstName": "some text", "LastName": "some text", "UserName": "some text", "Email": "some text", "Sex": "some text", "Status": "Active", "ActivationStatus": "NotActivated", "Department": "some text", "Location": "some text", "Notes": "some text", "AvatarMax": "some text", "AvatarMedium": "some text", "Avatar": "some text", "IsAdmin": true, "IsLDAP": true, "ListAdminModules": [ "some text" ], "IsOwner": true, "IsVisitor": true, "IsCollaborator": true, "CultureName": "some text", "MobilePhone": "some text", "IsSSO": true, "QuotaLimit": 1234 } }
text/xml
<result> <status>0</status> <response> <FirstName>some text</FirstName> <LastName>some text</LastName> <UserName>some text</UserName> <Email>some text</Email> <Sex>some text</Sex> <Status>Active</Status> <ActivationStatus>NotActivated</ActivationStatus> <Department>some text</Department> <Location>some text</Location> <Notes>some text</Notes> <AvatarMax>some text</AvatarMax> <AvatarMedium>some text</AvatarMedium> <Avatar>some text</Avatar> <IsAdmin>True</IsAdmin> <IsLDAP>True</IsLDAP> <ListAdminModules>[ "some text" ]</ListAdminModules> <IsOwner>True</IsOwner> <IsVisitor>True</IsVisitor> <IsCollaborator>True</IsCollaborator> <CultureName>some text</CultureName> <MobilePhone>some text</MobilePhone> <IsSSO>True</IsSSO> <QuotaLimit>1234</QuotaLimit> </response> </result>