--- title: "SSO Userの更新" slug: "put-user" updated: 2026-09-17T09:58:02Z published: 2026-09-17T09:58:02Z canonical: "api.ncloud-docs.com/put-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情報を更新します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | PUT | /api/v1/users/{userId} | ### リクエストヘッダ 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)をご参照ください。 ### リクエストパスパラメータ リクエストパスパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `userId` | String | Required | SSO User ID - [SSO Userリストの照会](/docs/ja/get-users)を参照 | ### リクエストボディ リクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `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`: 許可しない | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request PUT 'https://sso.apigw.ntruss.com/api/v1/users/8306bedf-****-****-****-40394feacec8' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --data '{ "description": "SSO User", "userProfile": { "firstName": "太郎", "lastName": "田中", "email": "******@ncloud.com", "empNo": "00112233", "phoneCountryCode": "82", "phoneNo": "010-1111-1111", "deptName": "部署" }, "accessRules": { "consoleAccessAllowed": true, "apiAccessAllowed": true } }' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `id` | String | - | SSO User ID | | `nrn` | String | - | SSO Userに対する NAVERクラウドプラットフォームリソースの識別値 | | `success` | Boolean | - | API処理結果 | ### レスポンスステータスコード 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)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` { "id": "80d9ba0d-****-****-****-76afe6ea5b33", "nrn": "nrn:PUB:SSO::*******:User/80d9ba0d-****-****-****-76afe6ea5b33", "success": true } ```