MENU
      SSO User 일괄 생성
        • PDF

        SSO User 일괄 생성

        • PDF

        기사 요약

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

        외부 계정 사용자 정보를 기반으로 1개 이상의 SSO User를 일괄 생성합니다. SSO User 생성에 사용한 외부 계정으로 네이버 클라우드 플랫폼에 로그인할 수 있습니다.

        참고

        SSO User는 최대 100개까지 생성할 수 있습니다.

        요청

        요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

        메서드URI
        POST/api/v1/users/bulk

        요청 헤더

        Ncloud Single Sign-On API에서 공통으로 사용하는 헤더에 대한 정보는 Ncloud Single Sign-On 요청 헤더를 참조해 주십시오.

        요청 바디

        요청 바디에 대한 설명은 다음과 같습니다.

        필드타입필수 여부설명
        paramsArrayRequiredSSO User 정보

        params

        params에 대한 설명은 다음과 같습니다.

        필드타입필수 여부설명
        loginIdStringRequiredSSO User 로그인 아이디
        • 3~60자
        • 이메일 형식
        • 생성 후 변경 불가
        descriptionStringOptionalSSO User 설명
        • 0~300자
        userProfileObjectOptionalSSO User Profile 정보
        userProfile.firstNameStringOptionalSSO User 이름
        • 0~200자
        userProfile.lastNameStringOptionalSSO User 성
        • 0~200자
        userProfile.emailStringOptionalSSO User 이메일 주소
        • 0~200자
        userProfile.empNoStringOptionalSSO User 사원 번호
        • 0~200자
        userProfile.phoneCountryCodeStringOptionalSSO User 국가 번호
        • 0~10자
        • 국가 번호 형식
        userProfile.phoneNoStringOptionalSSO User 핸드폰 번호
        • 0~200자
        • 핸드폰 번호 형식
        userProfile.deptNameStringOptionalSSO User 부서 이름
        • 0~200자
        accessRulesObjectRequired접근 규칙 정보
        accessRules.consoleAccessAllowedBooleanRequired콘솔 접근 허용 여부
        • true | false
          • true: 허용
          • false: 허용 안 함
        accessRules.apiAccessAllowedBooleanRequiredAPI Gateway 접근 허용 여부
        • true | false
          • true: 허용
          • false: 허용 안 함

        요청 예시

        요청 예시는 다음과 같습니다.

        curl --location POST 'https://sso.apigw.ntruss.com/api/v1/users/bulk' \
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-iam-access-key: {Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
        --data '{
            "params": [
                {
                    "loginId": "******@ncloud.com",
                    "description": "SSO User",
                    "userProfile": {
                        "firstName": "길동",
                        "lastName": "홍",
                        "email": "******@ncloud.com",
                        "empNo": "0012341234",
                        "phoneCountryCode": "82",
                        "phoneNo": "010-0000-0000",
                        "deptName": "부서1"
                    },
                    "accessRules": {
                        "consoleAccessAllowed": true,
                        "apiAccessAllowed": true
                    }
                },
                {
                    "loginId": "******@ncloud.com",
                    "description": "SSO User",
                    "userProfile": {
                        "firstName": "철수",
                        "lastName": "김",
                        "email": "******@ncloud.com",
                        "empNo": "00110011",
                        "phoneCountryCode": "82",
                        "phoneNo": "010-1100-0000",
                        "deptName": "부서2"
                    },
                    "accessRules": {
                        "consoleAccessAllowed": true,
                        "apiAccessAllowed": true
                    }
                }
            ]
        }'
        Shell

        응답

        응답 형식을 설명합니다.

        응답 바디

        응답 바디에 대한 설명은 다음과 같습니다.

        필드타입필수 여부설명
        idString-SSO User 아이디
        nameString-SSO User 로그인 아이디
        nrnString-SSO User에 대한 네이버 클라우드 플랫폼 리소스 식별 값
        successBoolean-API 처리 결과
        • true | false
          • true: 성공
          • false: 실패
        messageString-결과 메시지
        • successfalse인 경우, 표시

        응답 상태 코드

        Ncloud Single Sign-On API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud Single Sign-On 응답 상태 코드를 참조해 주십시오.

        응답 예시

        응답 예시는 다음과 같습니다.

        [
            {
                "id": "6b0d0df7-****-****-****-1a11f29b5c34",
                "name": "******@ncloud.com",
                "nrn": "nrn:PUB:SSO::*******:User/6b0d0df7-****-****-****-1a11f29b5c34",
                "success": true
            },
            {
                "id": "ba0def04-****-****-****-ff0b962016f7",
                "name": "******@ncloud.com",
                "nrn": "nrn:PUB:SSO::*******:User/ba0def04-****-****-****-ff0b962016f7",
                "success": true
            }
        ]
        JSON

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

        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.