-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'DocSpace removed users' from feature/docspace-rem…
…oved-users into develop Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/api.onlyoffice.com/pulls/81
- Loading branch information
Showing
7 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../DocSpace/API Backend/Get Started/How It Works/Long Running Operations/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/DocSpace/API Backend/Get Started/How It Works/Passing Authentication/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
order: -4 | ||
order: -5 | ||
--- | ||
|
||
The user needs to perform several easy steps to pass authentication: | ||
|
53 changes: 53 additions & 0 deletions
53
site/pages/DocSpace/API Backend/Get Started/How It Works/Removed users/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
order: -1 | ||
--- | ||
|
||
Users removed from the DocSpace portal are specified with the `LostUser` constant, which is a `UserInfo` object in the following format: | ||
|
||
``` cs | ||
public static readonly UserInfo LostUser = new() | ||
{ | ||
Id = new Guid("{4A515A15-D4D6-4b8e-828E-E0586F18F3A3}"), | ||
FirstName = "Unknown", | ||
LastName = "Unknown", | ||
ActivationStatus = EmployeeActivationStatus.NotActivated | ||
}; | ||
``` | ||
|
||
This object is also used for all users not found in the DocSpace portal (guests, users with the pending activation status, etc.). | ||
|
||
## Parameters | ||
|
||
### Id | ||
|
||
The user ID. The removed users always have the `{4A515A15-D4D6-4b8e-828E-E0586F18F3A3}` ID. | ||
|
||
Type: string | ||
|
||
Value: `new Guid("{4A515A15-D4D6-4b8e-828E-E0586F18F3A3}")` | ||
|
||
### FirstName | ||
|
||
The user first name. | ||
|
||
Type: string | ||
|
||
Value: "Unknown" | ||
|
||
### LastName | ||
|
||
The user last name. | ||
|
||
Type: string | ||
|
||
Value: "Unknown" | ||
|
||
### ActivalionStatus | ||
|
||
The user activation status ("NotActivated" or 0). | ||
|
||
Type: string | integer | ||
|
||
Value: `EmployeeActivationStatus.NotActivated` | ||
|
||
For example, when sending GET requests to the `api/2.0/people/email` or `api/2.0/people/{userid}` addresses, the `LostUser` ID is used to check if a user with the specified email or name exists. If the user ID is equal to the `LostUser` ID, this user is removed from the portal and a 404 status code is returned (`User not found`). |
2 changes: 1 addition & 1 deletion
2
...es/DocSpace/API Backend/Get Started/How It Works/Uploading Large Files/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
site/pages/DocSpace/API Backend/Get Started/How It Works/Webhooks/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters