--- title: "putUser" slug: "pub-single-sign-on-v2-sso-user-putuser" updated: 2026-11-24T09:24:36Z published: 2026-11-24T09:24:36Z canonical: "api.ncloud-docs.com/pub-single-sign-on-v2-sso-user-putuser" --- > ## 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. # putUser Classic/VPC 환경에서 이용 가능합니다. Ncloud API 표준 규격을 적용한 API입니다. SSO User 정보를 수정합니다. 주의 기존 SSO User 정보가 전부 요청한 내용으로 교체됩니다. 기존 값을 유지하려면 해당 값도 포함하여 요청해 주십시오. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | PUT | /api/v2/users/{userId} | ### 요청 헤더 Ncloud Single Sign-On API에서 공통으로 사용하는 헤더에 대한 정보는 [Ncloud Single Sign-On 요청 헤더](/docs/pub-single-sign-on-v2-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 경로 파라미터 요청 경로 파라미터에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `userId` | String | Required | SSO User 식별자 - UUID 형식 - [listUsers](/docs/pub-single-sign-on-v2-sso-user-listusers) 참조 | ### 요청 바디 요청 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `description` | String | Optional | SSO User에 대한 설명 - 길이: 0~300 | | `userProfile` | Object | Optional | SSO User Profile 정보 | | `userProfile.firstName` | String | Optional | 이름 - 길이: 0~200 | | `userProfile.lastName` | String | Optional | 성 - 길이: 0~200 | | `userProfile.email` | String | Optional | SSO User 이메일 주소 - 이메일 형식 - 길이: 0~200 - 패턴: `^(?:[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,})?$` - `@` 앞은 영문, 숫자, 특수문자 `.`, `_`, `%`, `+`, `-`를 조합하여 입력 - `@` 뒤는 영문, 숫자, 특수문자 `.`, `-`를 조합하여 입력 - 마지막 `.` 뒤는 영문 2자 이상 입력 - 빈 문자열 입력 가능 | | `userProfile.employeeNo` | String | Optional | 사원번호 - 길이: 0~200 | | `userProfile.phoneCountryCode` | String | Optional | SSO User 국가 번호 - 길이: 0~4 - 패턴: `^(?:\d{1,4})?$` - 숫자 1~4자로 입력 - 빈 문자열 입력 가능 | | `userProfile.phoneNo` | String | Optional | SSO User 핸드폰 번호 - 000-0000-0000 형식 - 길이: 0~13 - 패턴: `^(?:\d{3}-\d{3,4}-\d{4}\\|\d{9,11})?$` - 하이픈(`-`)을 포함하는 경우, 숫자 3자, 3~4자, 4자를 `-`로 구분하여 입력 - 하이픈을 포함하지 않는 경우, 숫자 9~11자로 입력 - 빈 문자열 입력 가능 | | `userProfile.departmentName` | String | Optional | 부서명 - 길이: 0~200 | | `accessRules` | Object | Required | SSO User 접근 규칙 정보 | | `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/v2/users/1a2b3c4d-1111-4abc-8def-0123456789ab' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --header 'Content-Type: application/json' \ --data '{ "accessRules": { "consoleAccessAllowed": true, "apiAccessAllowed": true } }' ``` ## 응답 응답 형식을 설명합니다. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `userId` | String | Required | SSO User 식별자 - UUID 형식 | | `loginId` | String | Required | SSO User 로그인 아이디 | | `nrn` | String | Required | SSO User NRN(Ncloud Resource Name) | | `userProfile` | Object | Required | SSO User Profile 정보 | | `userProfile.firstName` | String | Optional | SSO User 이름 | | `userProfile.lastName` | String | Optional | SSO User 성 | | `userProfile.email` | String | Optional | SSO User 이메일 주소 | | `userProfile.emailVerified` | Boolean | Optional | 이메일 인증 완료 여부 - `true` \| `false` - `true`: 이메일 인증 완료 - `false`: 이메일 인증 미완료 | | `userProfile.employeeNo` | String | Optional | SSO User 사원 번호 | | `userProfile.phoneCountryCode` | String | Optional | SSO User 국가 번호 | | `userProfile.phoneNo` | String | Optional | SSO User 핸드폰 번호 | | `userProfile.phoneNoVerified` | Boolean | Optional | 핸드폰 번호 인증 완료 여부 - `true` \| `false` - `true`: 핸드폰 번호 인증 완료 - `false`: 핸드폰 번호 인증 미완료 | | `userProfile.departmentName` | String | Optional | SSO User 부서 이름 | | `accessRules` | Object | Required | SSO User 접근 규칙 정보 | | `accessRules.consoleAccessAllowed` | Boolean | Required | 콘솔 접근 허용 여부 - `true` \| `false` - `true`: 허용 - `false`: 허용 안 함 | | `accessRules.apiAccessAllowed` | Boolean | Required | API Gateway 접근 허용 여부 - `true` \| `false` - `true`: 허용 - `false`: 허용 안 함 | | `status` | String | Required | SSO User 상태 - `ACTIVATED` \| `SUSPENDED` - `ACTIVATED`: 활성 - `SUSPENDED`: 비활성 | | `lastLoginDateTime` | String | Optional | SSO User가 마지막으로 로그인한 일시 - ISO 8601 형식 (UTC 기준) | | `createdDateTime` | String | Required | SSO User 생성 일시 - ISO 8601 형식 (UTC 기준) | | `updatedDateTime` | String | Required | SSO User가 마지막으로 수정된 일시 - ISO 8601 형식 (UTC 기준) | | `description` | String | Optional | SSO User에 대한 설명 | ### 응답 상태 코드 응답 상태 코드에 대한 설명은 다음과 같습니다. | HTTP 상태 코드 | 코드 | 메시지 | 설명 | | --- | --- | --- | --- | | 200 | - | - | SSO User 상세 정보 | | 400 | `InvalidParameter` | `The specified parameter is invalid.` | 입력값 형식 오류 | | 404 | `ResourceNotFound` | `The specified resource could not be found.` | 생성된 Tenant 없음 | | 404 | `UserNotFound` | `The specified user could not be found.` | 지정한 SSO User가 존재하지 않음 | 참고 Ncloud Single Sign-On API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Ncloud Single Sign-On 응답 상태 코드](/docs/pub-single-sign-on-v2-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오. ### 응답 예시 응답 예시는 다음과 같습니다. ``` { "userId": "1a2b3c4d-1111-4abc-8def-0123456789ab", "loginId": "user@example.com", "nrn": "nrn:PUB:SSO::1234567:User/1a2b3c4d-1111-4abc-8def-0123456789ab", "userProfile": { "firstName": "John", "lastName": "Doe", "email": "user@example.com", "emailVerified": true, "employeeNo": "12345678", "phoneCountryCode": "82", "phoneNo": "010-1234-5678", "phoneNoVerified": true, "departmentName": "example-department" }, "accessRules": { "consoleAccessAllowed": true, "apiAccessAllowed": true }, "status": "ACTIVATED", "lastLoginDateTime": "2025-01-02T09:00:00Z", "createdDateTime": "2025-01-02T09:00:00Z", "updatedDateTime": "2025-01-02T09:00:00Z", "description": "example description" } ```