--- title: "SSO Userの作成" slug: "post-user" updated: 2026-09-17T09:58:02Z published: 2026-09-17T09:58:02Z canonical: "api.ncloud-docs.com/post-user" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # SSO Userの作成 Classic/VPC環境で利用できます。 外部アカウントのユーザー情報に基づいて SSO Userを作成します。SSO Userの作成に使用した外部アカウントで NAVERクラウドプラットフォームにログインできます。 参考 SSO Userは最大100個まで作成できます。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | POST | /api/v1/users | ### リクエストヘッダ Ncloud Single Sign-On APIで共通して使用されるヘッダの詳細は、[Ncloud Single Sign-Onのリクエストヘッダ](/docs/ja/single-sign-on-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストボディ リクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `loginId` | String | Required | SSO Userログイン ID - 3~60文字 - メール形式 - 作成後は変更不可 | | `description` | String | Optional | SSO Userの説明 - 0~300文字 | | `userProfile` | Object | Optional | SSO User Profile情報 | | `userProfile.firstName` | String | Optional | SSO Userの名(下の名前) - 0~200文字 | | `userProfile.lastName` | String | Optional | SSO Userの姓(苗字) - 0~200文字 | | `userProfile.email` | String | Optional | SSO Userのメールアドレス - 0~200文字 | | `userProfile.empNo` | String | Optional | SSO Userの社員番号 - 0~200文字 | | `userProfile.phoneCountryCode` | String | Optional | SSO Userの国番号 - 0~10文字 - 国番号形式 | | `userProfile.phoneNo` | String | Optional | SSO Userの携帯電話番号 - 0~200文字 - 携帯電話番号形式 | | `userProfile.deptName` | String | Optional | SSO Userの部署名 - 0~200文字 | | `accessRules` | Object | Required | アクセスルール情報 | | `accessRules.consoleAccessAllowed` | Boolean | Required | コンソールアクセスを許可するか - `true` \| `false` - `true`: 許可 - `false`: 許可しない | | `accessRules.apiAccessAllowed` | Boolean | Required | API Gatewayアクセスを許可するか - `true` \| `false` - `true`: 許可 - `false`: 許可しない | | `tags` | Object | Optional | ポリシーのタグ - リソースごとに最大20個 - `{tagKey}:{tagValue}`形式で入力 - tagKey: 英数字、記号の「*、.、/、=、+、-、@」を組み合わせて128文字以内で入力* - *tagValue: 英数字、記号の「*、.、/、=、+、-、@」を組み合わせて256文字以内で入力 | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request POST 'https://sso.apigw.ntruss.com/api/v1/users' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --data '{ "loginId": "******@ncloud.com", "description": "SSO User", "userProfile": { "firstName": "ギルドン", "lastName": "ホン", "email": "******@ncloud.com", "empNo": "00112233", "phoneCountryCode": "82", "phoneNo": "010-0000-0000", "deptName": "部署" }, "accessRules": { "consoleAccessAllowed": true, "apiAccessAllowed": true }, "tags": { "tagKey1": "tagValue1", "team": "a" } }' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `userId` | String | - | SSO User ID | | `loginId` | String | - | SSO Userログイン ID | | `nrn` | String | - | SSO Userに対する NAVERクラウドプラットフォームリソースの識別値 | | `userProfile` | Object | - | SSO User Profile情報 | | `userProfile.firstName` | String | - | SSO Userの名(下の名前) | | `userProfile.lastName` | String | - | SSO Userの姓(苗字) | | `userProfile.email` | String | - | SSO Userのメールアドレス | | `userProfile.emailVerified` | Boolean | - | メールアドレスは認証済みかどうか - `true` \| `false` - `true`: 認証完了 - `false`: 認証が必要 | | `userProfile.empNo` | String | - | SSO Userの社員番号 | | `userProfile.phoneCountryCode` | String | - | SSO Userの国番号 | | `userProfile.phoneNo` | String | - | SSO Userの携帯電話番号 | | `userProfile.phoneNoVerified` | Boolean | - | 携帯電話番号は認証済みかどうか - `true` \| `false` - `true`: 認証完了 - `false`: 認証が必要 | | `userProfile.deptName` | String | - | SSO Userの部署名 | | `accessRules` | Object | - | アクセスルール情報 | | `accessRules.consoleAccessAllowed` | Boolean | - | コンソールアクセスを許可するか - `true` \| `false` - `true`: 許可 - `false`: 許可しない | | `accessRules.apiAccessAllowed` | Boolean | - | API Gatewayアクセスを許可するか - `true` \| `false` - `true`: 許可 - `false`: 許可しない | | `status` | String | - | SSO Userの状態 - `active` \| `suspended` - `active`: 使用中(有効化) - `suspended`: 停止(無効化) | | `description` | String | - | SSO Userの説明 | | `lastLoginAt` | String | - | SSO Userの最終アクセス日時 - ISO 8601形式 | | `createdAt` | String | - | SSO Userの作成日時 - ISO 8601形式 | | `updatedAt` | String | - | SSO Userの更新日時 - ISO 8601形式 | ### レスポンスステータスコード Ncloud Single Sign-On APIで共通して使用されるレスポンスステータスコードの詳細は、[Ncloud Single Sign-Onのレスポンスステータスコード](/docs/ja/single-sign-on-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` { "userId": "8306bedf-****-****-****-40394feacec8", "loginId": "******@ncloud.com", "nrn": "nrn:PUB:SSO::*******:User/8306bedf-****-****-****-40394feacec8", "userProfile": { "firstName": "ギルドン", "lastName": "ホン", "email": "******@ncloud.com", "emailVerified": true, "empNo": "00112233", "phoneCountryCode": "82", "phoneNo": "010-0000-0000", "phoneNoVerified": true, "deptName": "部署" }, "accessRules": { "consoleAccessAllowed": true, "apiAccessAllowed": true }, "status": "active", "createdAt": "2025-01-03T05:04:54Z", "updatedAt": "2025-01-03T05:04:54Z", "description": "SSO User", "tags": { "tagKey1": "tagValue2", "team": "a" } } ```