POST/users/{userId}/undelete
Undeletes a member. Note that a member can be undeleted only within 7 days since the member is deleted. The member who has been deleted more than 7 days ago cannot be undeleted because the member data has been completely cleared.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
user
directory
| Parameter | Type | Description |
|---|---|---|
| userId | string | Member ID required example : userf7da-f82c-4284-13e7-030f3b4c756x |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| domainId | integer | Domain ID required format : int32 |
| userId | string | Member ID readOnly : true |
| userExternalKey | string | Customer's member external key Some special characters, maxLength : 100 nullable : true |
| isAdministrator | boolean | Indicates whether the member is the domain administrator. readOnly : true |
| isPending | boolean | Indicates whether the member is pending. readOnly : true |
| isSuspended | boolean | Indicates whether the member is suspended. readOnly : true |
| isDeleted | boolean | Indicates whether the member is deleted. readOnly : true |
| isAwaiting | boolean | Indicates whether the member is active. readOnly : true |
| leaveOfAbsence | object (leaveOfAbsence) | readOnly : true |
| suspendedReason | string | Reason for suspension
Allowed values : MASTER, LOGIN_FAIL readOnly : true nullable : true |
| string | Account. It is the same as the member's email address (id@domain for Standard, id@group for Advanced).
required maxLength : 90 | |
| userName | object (userName) | Name information required |
| i18nNames | array (Useri18nName) | List of multilingual names minItems : 0 |
| nickName | string | Nickname. The allowed special characters are ! @ & ( ) - _ + [ ] { } , . / # ' ` ^ ~. maxLength : 100 nullable : true |
| privateEmail | string | Personal email address.
maxLength : 256 nullable : true |
| aliasEmails | array (string) | List of email aliases.
minItems : 0 maxItems : 10 |
| employmentTypeId | string | Employment type ID. Specify this parameter using the Enable employment types API operation.
nullable : true |
| employmentTypeExternalKey | string | Employment type external key maxLength : 100 readOnly : true nullable : true |
| employmentTypeName | string | Employment type name readOnly : true nullable : true |
| userTypeId | string | User type ID. It is available only if
nullable : true |
| userTypeExternalKey | string | User type external key maxLength : 100 readOnly : true nullable : true |
| userTypeName | string | User type name readOnly : true nullable : true |
| userTypeCode | string | User type code. It can include any combination of alphabetic characters (A-Z, a-z), numbers (0-9), or underline symbols (_) and can be up to 50 characters long. It must start with an English letter. maxLength : 50 readOnly : true nullable : true |
| searchable | boolean | Indicates whether to enable auto-complete and search (default: true). default : true |
| organizations | array (UserOrganization) | List of domains (companies) to which the member belongs, including both the primary and secondary positions. minItems : 0 |
| telephone | string | Phone number. Only numbers with the following characters are allowed: - * # + P T ( ) maxLength : 100 pattern : ^(?=.*[0-9])[0-9+\-*#PTpt()\u3000]{0,100} nullable : true |
| cellPhone | string | Mobile phone number. Only numbers with the following characters are allowed: - * # + P T ( ) maxLength : 100 pattern : ^(?=.*[0-9])[0-9+\-*#PTpt()\u3000]{0,100} nullable : true |
| location | string | Office location maxLength : 100 nullable : true |
| task | string | Task maxLength : 100 nullable : true |
| messenger | object (messenger) | Messenger information nullable : true |
| birthdayCalendarType | string | Birthday type.
Allowed values : SOLAR, LUNAR nullable : true |
| birthday | string | Birthday in YYYY-MM-DD format maxLength : 10 nullable : true |
| locale | string | Language code Allowed values : ko_KR, ja_JP, en_US, zh_CN, zh_TW |
| hiredDate | string | Date of hire in YYYY-MM-DD format maxLength : 10 nullable : true |
| timeZone | string | example : Europe/Berlin |
| customFields | array (UserCustomField) |
minItems : 0 maxItems : 50 deprecated : true |
| customProperties | object (customProperties) | Member custom properties. You need to add a member custom property first using the Add member custom properties API operation. |
| relations | array (UserRelation) | List of related contacts minItems : 0 maxItems : 10 |
| activationDate | string | Account activation date (ISO-8601 format, YYYY-MM-DDThh:mm:ssTZD)
maxLength : 25 nullable : true |
| employeeNumber | string | Employee number minLength : 1 maxLength : 20 nullable : true |
| Property | Type | Description |
|---|---|---|
| startTime | string | Start time ISO-8601 nullable : true |
| endTime | string | End time ISO-8601 nullable : true |
| isLeaveOfAbsence | boolean | Indicates whether the member is taking a leave of absence. |
| Property | Type | Description |
|---|---|---|
| lastName | string | Last name. The full name can be up to 80 characters long. Either lastName or firstName must be specified. The allowed special characters are ! @ & ( ) - _ + [ ] { } , . / # ' ` ^ ~. maxLength : 80 nullable : true |
| firstName | string | First name. The full name can be up to 80 characters long. Either lastName or firstName must be specified. The allowed special characters are ! @ & ( ) - _ + [ ] { } , . / # ' ` ^ ~. maxLength : 80 nullable : true |
| phoneticLastName | string | Last name in Furigana. Katakana is allowed only. maxLength : 100 nullable : true |
| phoneticFirstName | string | First name in Furigana. Katakana is allowed only. maxLength : 100 nullable : true |
| Property | Type | Description |
|---|---|---|
| language | string | Language code Allowed values : ko_KR, ja_JP, zh_CN, zh_TW, en_US |
| firstName | string | First name in the language. The last name is followed by the first name in the organization chart. The allowed special characters are ! @ & ( ) - _ + [ ] { } , . / # ' ` ^ ~. maxLength : 100 nullable : true |
| lastName | string | Last name in the language. The last name is followed by the first name in the organization chart. The allowed special characters are ! @ & ( ) - _ + [ ] { } , . / # ' ` ^ ~. maxLength : 100 nullable : true |
| Property | Type | Description |
|---|---|---|
| domainId | integer | Domain ID required format : int32 |
| primary | boolean | Indicates whether it is the primary domain. Make sure that you have one primary item (primary: true). If not specified, the first item automatically becomes primary. required |
| userExternalKey | string |
Customer's member external key Some special characters, maxLength : 100 nullable : true |
| string | Email address. maxLength : 90 | |
| levelId | string | Job level ID. Specify this parameter using the "Enable job levels" API operation.
nullable : true |
| levelExternalKey | string | Customer's job level external key maxLength : 100 readOnly : true nullable : true |
| levelName | string | Job level name readOnly : true nullable : true |
| executive | boolean | Indicates whether the member is an executive or not. readOnly : true |
| organizationName | string | Company name readOnly : true |
| orgUnits | array (orgUnit) | List of teams minItems : 0 maxItems : 30 |
| Property | Type | Description |
|---|---|---|
| orgUnitId | string | Team ID
required |
| orgUnitExternalKey | string | Customer's team external key maxLength : 100 readOnly : true nullable : true |
| orgUnitName | string | Team name readOnly : true |
| orgUnitEmail | string | Team email address readOnly : true |
| primary | boolean | Indicates whether it is the primary team. Make sure that you have one primary item (primary: true). If not specified, the first item automatically becomes primary. required |
| positionId | string | Position ID. It is available only if usePosition of the "Enable Positions" API operation is "true". If not specified, "no position" applies.
nullable : true |
| positionExternalKey | string | Customer's position external key maxLength : 100 readOnly : true nullable : true |
| positionName | string | Position name readOnly : true nullable : true |
| isManager | boolean | Indicates whether the member is a team leader (default: false). If it is "true" and a team leader already exists, the member replaces them, and the previous team leader is relieved of their duties. default : false |
| visible | boolean | Indicates whether to make the member visible (default: true). It indicates whether to make the member visible in the organization chart. default : true |
| useTeamFeature | boolean | Indicates whether to use the team features (default: true). Use this parameter to restrict a member's use of the team features for security purposes, such as: receiving messages, sharing files and receiving team emails in the team's message room. If it is "true", the member can join the team's message room (Message/Note/Calendar/Folder) and use the following team features:
default : true |
| Property | Type | Description |
|---|---|---|
| protocol | string | Messenger protocol
required Allowed values : LINE, FACEBOOK, X, CUSTOM |
| customProtocol | string | A user specified value when the protocol parameter is CUSTOM. maxLength : 100 |
| messengerId | string | Messenger ID required minLength : 1 maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| customFieldId | string | Custom field ID
required |
| customFieldExternalKey | string | Custom field external key maxLength : 100 readOnly : true nullable : true |
| value | string | Custom field's text to display. It is required if the custom field type is maxLength : 100 nullable : true |
| link | string | URL when the custom field type is
maxLength : 300 nullable : true |
| Property | Type | Description |
|---|---|---|
| propertyName | string | If propertyType is STRING and multiValued is false maxLength : 100 |
| array (string) | If propertyType is STRING and multiValued is true maxItems : 10 | |
| string | If propertyType is STRING, multiValued is false, and options exists, It is one of the options, optionName. | |
| array (string) | If propertyType is STRING, multiValued is true, and options exists, it is one of the options, optionName. maxItems : 10 | |
| string | If propertyType is DATE and multiValued is false, it is in the YYYY-MM-DD format. pattern : YYYY-MM-DD format : date | |
| array (string) | If propertyType is DATE and multiValued is true, it is in the YYYY-MM-DD format. maxItems : 10 | |
| integer | If propertyType is INTEGER and multiValued is false minimum : 0 | |
| array (integer) | If propertyType is INTEGER and multiValued is true maxItems : 10 | |
| object (CustomPropertyLink) | If propertyType is LINK and multiValued is false
| |
| array (CustomPropertyLink) | If propertyType is LINK and multiValued is true
maxItems : 10 |
| Property | Type | Description |
|---|---|---|
| text | string | Text maxLength : 100 nullable : true |
| link | string | URL maxLength : 300 |
| Property | Type | Description |
|---|---|---|
| relationUserId | string | Related contact member ID |
| relationName | string | Relation name maxLength : 50 |
| externalKey | string | externalKey maxLength : 100 readOnly : true nullable : true |
example
1{2 "domainId": 10000001,3 "userId": "userf7da-f82c-4284-13e7-030f3b4c756x",4 "userExternalKey": "USER_EXT_01",5 "isAdministrator": false,6 "isPending": false,7 "isSuspended": false,8 "isDeleted": false,9 "isAwaiting": true,10 "email": "localpart@example.com",11 "userName": {12 "lastName": "last",13 "firstName": "first"14 },15 "i18nNames": [],16 "nickName": "nickname",17 "privateEmail": "private.works@example.com",18 "aliasEmails": [],19 "searchable": true,20 "organizations": [21 {22 "domainId": 10000001,23 "primary": true,24 "email": "localpart@example.com",25 "levelId": "levelaa7-b824-4937-66af-042f1f43cefa",26 "levelName": "level",27 "executive": false,28 "organizationName": "org",29 "orgUnits": [30 {31 "orgUnitId": "orgunitf-f27f-4af8-27e1-03817a911417",32 "orgUnitEmail": "team01@example.com",33 "orgUnitName": "orgUnit1",34 "primary": true,35 "positionId": "position-7027-4a02-b838-6f52b5e38db7",36 "positionName": "position",37 "isManager": true,38 "visible": true,39 "useTeamFeature": true40 }41 ]42 }43 ],44 "telephone": "031-1234-5678",45 "cellPhone": "010-1234-5678",46 "location": "green building",47 "task": "mytask",48 "messenger": {49 "protocol": "LINE",50 "messengerId": "lineid"51 },52 "birthdayCalendarType": "SOLAR",53 "birthday": "2000-01-01",54 "locale": "en_US",55 "hiredDate": "2020-01-01",56 "timeZone": "America/New_York",57 "leaveOfAbsence": {58 "isLeaveOfAbsence": false59 },60 "customProperties": {61 "string_single": "hiking",62 "string_multi": [63 "hiking",64 "swimming"65 ],66 "string_single_option": "option_cooking",67 "string_multi_option": [68 "option_cooking",69 "option_piano"70 ],71 "date_single": "2025-03-23",72 "date_multi": [73 "2025-03-23",74 "2025-03-24"75 ],76 "integer_single": 123,77 "integer_multi": [78 123,79 45680 ],81 "link_single": {82 "text": "worksmobile",83 "link": "https://contact.worksmobile.com"84 },85 "link_multi": [86 {87 "text": "worksmobile",88 "link": "https://contact.worksmobile.com"89 },90 {91 "text": "line",92 "link": "https://www.line.me/"93 }94 ]95 },96 "relations": [97 {98 "relationUserId": "userfd-fc09-4a57-ab38-03dc6c425e09",99 "relationName": "Manager",100 "externalKey": "ExternalKeyValue"101 }102 ],103 "activationDate": "2030-11-12T09:30:00+09:00",104 "employeeNumber": "employee1234"105}Bad Request
Not Found