Employee
    • PDF

    Employee

    • PDF

    Article Summary

    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

    HeaderDescription
    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

    ParameterTypeSizeRequirement statusDescription
    partnerIdString15YPartner ID provided by WORKPLACE
    companyIdString36YLinkage key (CompanyId) of customer to be searched Developers > Basic settings > Linkage key

    Request parameter

    ParameterTypeSizeRequirement statusDescription
    offsetlongNDisplays offset rows first
    limitlongNDisplays as many as the number of limits

    Request body parameter

    ParameterTypeSizeRequirement statusDescription
    loginIdString100YLogin ID
    emailAddressString100YEmail address
    employYmdString10YDate of employment(yyyy-MM-dd)
    telephoneNoString30NPhone number
    cellphoneNoString100NMobile phone number
    empIdString36YWORKPLACE employee key
    deptNoString36YWORKPLACE department key
    birthYmdString30NDate of birth(yyyy-MM-dd)
    genderCdString30NGender(MALE, FEMALE)
    empNickString100NNicknameAmong special characters, only ! @ & ( ) - _ + [ ] { } , . are allowed.
    localeTypeCdStringNLocale information
    tmznTypeCdStringNTime zone information
    zipCodeString10NZip code
    addressString100NAddress
    addressDetailString100NDetailed address
    nameString100YDefault name
    i18nNamesMapNLocalized name Map<Locale, String> i18nNames
    deptExternalKeyString100YDepartment external key
    concurrentDeptExternalKeysarrayYConcurrent department external key
    empTypeExternalKeyString100YEmployment type external key
    gradeCdExternalKeyString100NJob grade external key
    jobCdExternalKeyString100NJob position external key
    empStatusString30NEmployee status information
    passwordSettingTypeString10YPassword setting type(ADMIN/USER)
    initializePasswordString100YADMIN: 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 codeResponse messageDescription
    200OKGeneral request made successfully
    201CreatedResponse code to the successful resource creation
    400Bad RequestUsed for failed general request
    500Internal 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 codeDescription
    ko_KRKorean
    ja_JPJapanese
    zh_CNChinese (Simplified)
    zh_TWChinese (Traditional)
    en_USEnglish

    Time zone codes

    Time zone codeDescription
    Pacific/MidwayGMT-11:00(MidwayIsland, Samoa)
    Pacific/HonoluluGMT-10:00(Hawaii)
    Pacific/MarquesasGMT-09:30(Marquesas)
    America/AnchorageGMT-09:00(Alaska)
    America/Los_AngelesGMT-08:00(PacificTime)
    America/DenverGMT-07:00(MountainTime_US/Canada)
    America/ChicagoGMT-06:00(CentralTime_US/Canada)
    America/New_YorkGMT-05:00(EasternTime_US/Canada)
    America/CaracasGMT-04:30(Caracas)
    America/SantiagoGMT-04:00(Santiago)
    America/St_JohnsGMT-03:30(Newfoundland)
    America/Sao_PauloGMT-03:00(SaoPaulo)
    America/NoronhaGMT-02:00(Mid-Atlantic)
    Atlantic/AzoresGMT-01:00(Azores)
    Europe/LondonGMT+00:00(GreenwichMeanTime_London)
    Europe/BerlinGMT+01:00(Amsterdam,Berlin, Vienna)
    Europe/AthensGMT+02:00(Athens, Cairo)
    Asia/BaghdadGMT+03:00(Moscow, Baghdad)
    Asia/TehranGMT+03:30(Tehran)
    Asia/BakuGMT+04:00(Baku, Muscat)
    Asia/KarachiGMT+05:00(Karachi)
    Asia/ColomboGMT+05:30(NewDelhi,Mumbai, Colombo)
    Asia/KatmanduGMT+05:45(Katmandu)
    Asia/DhakaGMT+06:00(Astana, Dhaka)
    Asia/RangoonGMT+06:30(Rangoon)
    Asia/BangkokGMT+07:00(Bangkok, Hanoi,Jakarta)
    Asia/ShanghaiGMT+08:00(Beijing,Dalian, Singapore, Taiwan)
    Asia/SeoulGMT+09:00(Seoul)
    Asia/TokyoGMT+09:00(Tokyo, Fukuoka)
    Australia/DarwinGMT+09:30(Darwin,Adelaide)
    Australia/SydneyGMT+10:00(Guam,Canberra, Sydney)
    Australia/Lord_HoweGMT+10:30(LordHoweIsland)
    Pacific/NoumeaGMT+11:00(NewCaledonia)
    Pacific/NorfolkGMT+11:30(NorfolkIsland)
    Pacific/AucklandGMT+12:00(Auckland,Fiji)

    Employee status code

    Employee status codeDescription
    INEmployed
    RESTOn leave of absence
    RETIRERetired
    DELETEDeleted

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.