User 생성
    • PDF

    User 생성

    • PDF

    Article Summary

    Classic/VPC 환경에서 이용 가능합니다.

    User를 생성합니다.

    요청

    • POST /users

    요청 Body

    {
      "loginId": "string",
      "description": "string",
      "userProfile": {
        "firstName": "string",
        "lastName": "string",
        "email": "string",
        "empNo": "string",
        "phoneCountryCode": "string",
        "phoneNo": "string",
        "deptName": "string"
      },
      "accessRules": {
        "consoleAccessAllowed": "boolean",
        "apiAccessAllowed": "boolean"
      }
    }
    
    파라미터필수 여부타입설명제약 사항
    loginIdYString로그인 아이디email 형식
    descriptionNString유저 설명최대 300 bytes
    userProfileNObjectUser profile
    userProfile.firstNameNString이름최대 200 bytes
    userProfile.lastNameNString최대 200 bytes
    userProfile.emailNString이메일최대 200 bytes, email 형식
    userProfile.empNoNString사원 번호최대 200 bytes
    userProfile.phoneCountryCodeNString핸드폰 번호 국가 번호최대 10 bytes, 국가 번호 형식만 허용
    userProfile.phoneNoNString핸드폰 번호최대 200 bytes, 핸드폰 번호 형식만 허용
    userProfile.deptNameNString부서명최대 200 bytes
    accessRulesYObject접근 규칙
    accessRules.consoleAccessAllowedYBoolean콘솔 접근 허용 여부
    accessRules.apiAccessAllowedYBooleanAPI 접근 허용 여부

    응답

    응답 바디

    {
      "userId" : "string",
      "loginId" : "string",
      "nrn" : "string",
      "userProfile" : {
        "firstName" : "string",
        "lastName" : "string",
        "email" : "string",
        "emailVerified" : "boolean",
        "empNo" : "string",
        "phoneCountryCode" : "string",
        "phoneNo" : "string",
        "phoneNoVerified" : "boolean",
        "deptName" : "string"
      },
      "accessRules" : {
        "consoleAccessAllowed" : "boolean",
        "apiAccessAllowed" : "boolean"
      },
      "status" : "string",
      "description" : "string",
      "lastLoginAt" : "string",
      "createdAt" : "string",
      "updatedAt" : "string"
    }
    
    파라미터타입설명
    userIdString유저 아이디
    loginIdString로그인 아이디 (email)
    nrnString생성된 유저 nrn
    userProfileObjectUser profile
    userProfile.firstNameString이름
    userProfile.lastNameString
    userProfile.emailString이메일
    userProfile.emailVerifiedBoolean이메일 검증 여부
    userProfile.empNoString사원 번호
    userProfile.phoneCountryCodeString핸드폰 번호 국가 번호
    userProfile.phoneNoString핸드폰 번호
    userProfile.phoneNoVerifiedBoolean핸드폰 번호 검증 여부
    userProfile.deptNameString부서명
    accessRulesObject접근 규칙
    accessRules.consoleAccessAllowedBoolean콘솔 접근 허용 여부
    accessRules.apiAccessAllowedBooleanAPI 접근 허용 여부
    statusString유저 상태 (active, suspended, deleted)
    lastLoginAtString최종 로그인 일시 (UTC, ex. 2023-04-25T131150Z)
    createdAtString생성 일시 (UTC, ex. 2023-04-25T131150Z)
    updatedAtString수정 일시 (UTC, ex. 2023-04-25T131150Z)
    descriptionString유저 설명

    에러

    아래 에러 코드는 이 액션(Action)에서 특징적으로 발생하는 에러입니다. 에러 응답 형식은 ErrorResponse를 참조해 주십시오.
    공통적으로 발생하는 에러에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해 주십시오.

    HTTP status code에러 코드에러 메시지
    400400잘못된 요청

    이 문서가 도움이 되었습니까?

    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.