User 作成
    • PDF

    User 作成

    • PDF

    Article Summary

    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ログイン IDemail形式
    descriptionNStringユーザーの説明最大300byte
    userProfileNObjectUser profile
    userProfile.firstNameNString最大200byte
    userProfile.lastNameNString最大200byte
    userProfile.emailNStringメールアドレス最大200byte、email形式
    userProfile.empNoNString社員番号最大200byte
    userProfile.phoneCountryCodeNString携帯電話番号 国番号最大10byte、国番号形式のみ許可
    userProfile.phoneNoNString携帯電話番号最大200byte、携帯電話番号形式のみ許可
    userProfile.deptNameNString部署名最大200byte
    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ユーザー ID
    loginIdStringログイン ID(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.