Employee
- Print
- PDF
Employee
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Description
Searches the employee list of a customer connected to the partner company.
Employee list search API
Searches the employee list.
Request URL
GET https://workplace.apigw.ntruss.com/partner/apigw/v2/partner/{partnerId}/company/{companyId}/employee
Request header
Header | Description |
---|---|
x-ncp-apigw-timestamp | - This is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC. - If the time difference compared to the API Gateway server is more than 5 minutes, then the request is considered invalid. |
x-ncp-iam-access-key | - Access key ID issued on the NAVER Cloud Platform portal or by Sub Account |
x-ncp-apigw-signature-v2 | - A signature that encrypts the body of the example above with the secret key mapped to the access key ID - Uses HmacSHA256 for the HMAC encryption algorithm |
Request path parameter
Parameter | Type | Size | Requirement status | Description |
---|---|---|---|---|
partnerId | String | 15 | Y | Partner ID provided by WORKPLACE |
companyId | String | 36 | Y | Linkage key (CompanyId) of customer to be searched Developers > Basic settings > Linkage key |
Request parameter
Parameter | Type | Size | Requirement status | Description |
---|---|---|---|---|
offset | long | N | Displays offset rows first | |
limit | long | N | Displays as many as the number of limits |
Request body parameter
Parameter | Type | Size | Requirement status | Description |
---|---|---|---|---|
loginId | String | 100 | Y | Login ID |
emailAddress | String | 100 | Y | Email address |
employYmd | String | 10 | Y | Date of employment(yyyy-MM-dd) |
telephoneNo | String | 30 | N | Phone number |
cellphoneNo | String | 100 | N | Mobile phone number |
empId | String | 36 | Y | WORKPLACE employee key |
deptNo | String | 36 | Y | WORKPLACE department key |
birthYmd | String | 30 | N | Date of birth(yyyy-MM-dd) |
genderCd | String | 30 | N | Gender(MALE, FEMALE) |
empNick | String | 100 | N | NicknameAmong special characters, only ! @ & ( ) - _ + [ ] { } , . are allowed. |
localeTypeCd | String | N | Locale information | |
tmznTypeCd | String | N | Time zone information | |
zipCode | String | 10 | N | Zip code |
address | String | 100 | N | Address |
addressDetail | String | 100 | N | Detailed address |
name | String | 100 | Y | Default name |
i18nNames | Map | N | Localized name Map<Locale, String> i18nNames | |
deptExternalKey | String | 100 | Y | Department external key |
concurrentDeptExternalKeys | array | Y | Concurrent department external key | |
empTypeExternalKey | String | 100 | Y | Employment type external key |
gradeCdExternalKey | String | 100 | N | Job grade external key |
jobCdExternalKey | String | 100 | N | Job position external key |
empStatus | String | 30 | N | Employee status information |
passwordSettingType | String | 10 | Y | Password setting type(ADMIN/USER) |
initializePassword | String | 100 | Y | ADMIN: initial password / USER: email address for receiving invitation email |
Request examples
GET https://workplace.apigw.ntruss.com/partner/apigw/v2/partner/partnertest/company/1663a976-32c9-48a4-8edb-f1ffcefb1bf3/employee?offset=0&limit=10
GET
/partner/apigw/v2/partner/partnertest/company/1663a976-32c9-48a4-8edb-f1ffcefb1bf3/employee?offset=0&limit=10
HOST: workplace.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-timestamp: 1505290625682
x-ncp-apigw-api-key: DUxjP4HYTP8V7khBkgywdDHQjKuaYWGrppHKpvdv
x-ncp-iam-access-key: D78BB444D6D3C84CA38A
x-ncp-apigw-signature-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
Response examples
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 23 Feb 2022 05:17:06 GMT
Content-Type: application/json;charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
x-ncp-trace-id: 68d1o68pm4cr63gc3169gm4p34
{
"elements": [
{
"tenantId": "1663a976-32c9-48a4-8edb-f1ffcefb1bf3",
"companyId": "1663a976-32c9-48a4-8edb-f1ffcefb1bf3",
"externalKey": null,
"name": "Employee Park",
"i18nNames": {},
"employYmd": "",
"loginId": "testuser@sample.com",
"emailAddress": "testuser@sample.com",
"telephoneNo": "",
"cellphoneNo": "",
"empNo": null,
"empId": "81aaa126-655d-2123-5903-94e95386e866",
"deptNo": "partner-test202202000001",
"nationCd": "",
"residentRegistrationNumber": "",
"genderCd": "",
"birthYmd": "",
"zipCode": "",
"address": "",
"addressDetail": "",
"deptExternalKey": null,
"gradeCdExternalKey": "",
"jobCdExternalKey": "",
"empTypeExternalKey": "",
"empStatus" "IN",
"concurrentDeptExternalKeys": [],
"reportsToExternalKey": []
},
{
"tenantId": "1663a976-32c9-48a4-8edb-f1ffcefb1bf3",
"companyId": "1663a976-32c9-48a4-8edb-f1ffcefb1bf3",
"externalKey": null,
"name": "Admin",
"i18nNames": {},
"employYmd": "",
"loginId": "admin@sample.com",
"emailAddress": "admin@sample.com",
"telephoneNo": "",
"cellphoneNo": "01012341234",
"empNo": null,
"empId": "41bc321a-a6d2-4b57-8f71-b7602993be84",
"deptNo": "1663a976-32c9-48a4-8edb-f1ffcefb1bf3",
"nationCd": "",
"residentRegistrationNumber": "",
"genderCd": "",
"birthYmd": "",
"zipCode": "",
"address": "",
"addressDetail": "",
"deptExternalKey": null,
"gradeCdExternalKey": "",
"jobCdExternalKey": "",
"empTypeExternalKey": "",
"empStatus" "RETIRE",
"concurrentDeptExternalKeys": [],
"reportsToExternalKey": []
}
],
"totalCount": 2
}
Response
Returned as an HTTP status code and delivered as body information.
HTTP status code | Response message | Description |
---|---|---|
200 | OK | General request made successfully |
201 | Created | Response code to the successful resource creation |
400 | Bad Request | Used for failed general request |
500 | Internal Server Error | - Response code to general server errors - 4XX error codes represent client-side errors - 5XX error codes represent server-side errors |
Response examples
{
"status": 400,
"code": -4001,
"errors": [],
"message": "This is a duplicate login ID"
}
Language codes supported
Locale code | Description |
---|---|
ko_KR | Korean |
ja_JP | Japanese |
zh_CN | Chinese (Simplified) |
zh_TW | Chinese (Traditional) |
en_US | English |
Time zone codes
Time zone code | Description |
---|---|
Pacific/Midway | GMT-11:00(MidwayIsland, Samoa) |
Pacific/Honolulu | GMT-10:00(Hawaii) |
Pacific/Marquesas | GMT-09:30(Marquesas) |
America/Anchorage | GMT-09:00(Alaska) |
America/Los_Angeles | GMT-08:00(PacificTime) |
America/Denver | GMT-07:00(MountainTime_US/Canada) |
America/Chicago | GMT-06:00(CentralTime_US/Canada) |
America/New_York | GMT-05:00(EasternTime_US/Canada) |
America/Caracas | GMT-04:30(Caracas) |
America/Santiago | GMT-04:00(Santiago) |
America/St_Johns | GMT-03:30(Newfoundland) |
America/Sao_Paulo | GMT-03:00(SaoPaulo) |
America/Noronha | GMT-02:00(Mid-Atlantic) |
Atlantic/Azores | GMT-01:00(Azores) |
Europe/London | GMT+00:00(GreenwichMeanTime_London) |
Europe/Berlin | GMT+01:00(Amsterdam,Berlin, Vienna) |
Europe/Athens | GMT+02:00(Athens, Cairo) |
Asia/Baghdad | GMT+03:00(Moscow, Baghdad) |
Asia/Tehran | GMT+03:30(Tehran) |
Asia/Baku | GMT+04:00(Baku, Muscat) |
Asia/Karachi | GMT+05:00(Karachi) |
Asia/Colombo | GMT+05:30(NewDelhi,Mumbai, Colombo) |
Asia/Katmandu | GMT+05:45(Katmandu) |
Asia/Dhaka | GMT+06:00(Astana, Dhaka) |
Asia/Rangoon | GMT+06:30(Rangoon) |
Asia/Bangkok | GMT+07:00(Bangkok, Hanoi,Jakarta) |
Asia/Shanghai | GMT+08:00(Beijing,Dalian, Singapore, Taiwan) |
Asia/Seoul | GMT+09:00(Seoul) |
Asia/Tokyo | GMT+09:00(Tokyo, Fukuoka) |
Australia/Darwin | GMT+09:30(Darwin,Adelaide) |
Australia/Sydney | GMT+10:00(Guam,Canberra, Sydney) |
Australia/Lord_Howe | GMT+10:30(LordHoweIsland) |
Pacific/Noumea | GMT+11:00(NewCaledonia) |
Pacific/Norfolk | GMT+11:30(NorfolkIsland) |
Pacific/Auckland | GMT+12:00(Auckland,Fiji) |
Employee status code
Employee status code | Description |
---|---|
IN | Employed |
REST | On leave of absence |
RETIRE | Retired |
DELETE | Deleted |
Was this article helpful?