MENU
      グループの SSO Userリストの照会

        グループの SSO Userリストの照会


        記事の要約

        Classic/VPC環境で利用できます。

        グループに追加した SSO Userリストを照会します。

        リクエスト

        リクエスト形式を説明します。リクエスト形式は次の通りです。

        メソッドURI
        GET/api/v1/groups/{groupId}/users

        リクエストヘッダ

        Ncloud Single Sign-On APIで共通して使用されるヘッダの詳細は、Ncloud Single Sign-Onのリクエストヘッダをご参照ください。

        リクエストパスパラメータ

        リクエストパスパラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        groupIdStringRequiredグループ ID

        リクエストクエリパラメータ

        リクエストクエリパラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        searchWordStringOptional検索キーワード
        • searchColumnstatusを入力するとactive(使用中、有効化)またはsuspended(停止、無効化)で検索
        • searchColumnと全体または一部が一致しない値を入力した場合、レスポンス時にitemsは空の値[]で表示
        • searchColumnなしでリクエストする場合、全リストを表示
        searchColumnStringConditional検索カラム
        • loginId | status | nrn | userId
          • loginId: SSO Userログイン ID
          • status: SSO Userの状態
          • nrn: SSO Userに対する NAVERクラウドプラットフォームリソースの識別値
          • userId: SSO User ID
        • searchWordを入力する場合、必ず入力
        pageIntegerOptionalページ番号
        • 0~N (デフォルト: 0)
        sizeIntegerOptionalページの出力数
        • 1~N (デフォルト: 20)

        リクエスト例

        リクエストのサンプルコードは次の通りです。

        curl --location --request GET 'https://sso.apigw.ntruss.com/api/v1/groups/12cfbd94-****-****-****-2ff725201395/users?searchColumn=loginId&searchWord=******@ncloud.com&page=0&size=20' \
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-iam-access-key: {Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
        Shell

        レスポンス

        レスポンス形式を説明します。

        レスポンスボディ

        レスポンスボディの説明は次の通りです。

        フィールドタイプ必須の有無説明
        pageNumber-ページ番号
        totalPagesNumber-ページの総数
        totalItemsNumber-レスポンス結果数
        isFirstBoolean-最初のページかどうか
        • true | false
          • true: 最初のページ
          • false: 最初のページではない
        isLastBoolean-最後のページかどうか
        • true | false
          • true: 最後のページ
          • false: 最後のページではない
        hasPreviousBoolean-以前のページは存在するかどうか
        • true | false
          • true: 存在する
          • false: 存在しない
        hasNextBoolean-次のページは存在するかどうか
        • true | false
          • true: 存在する
          • false: 存在しない
        itemsArray-SSO Userリスト

        items

        itemsの説明は次の通りです。

        フィールドタイプ必須の有無説明
        userIdString-SSO User ID
        loginIdString-SSO Userログイン ID
        nrnString-SSO Userに対する NAVERクラウドプラットフォームリソースの識別値
        userProfileObject-SSO User Profile情報
        userProfile.firstNameString-SSO Userの名(下の名前)
        userProfile.lastNameString-SSO Userの姓(苗字)
        userProfile.emailString-SSO Userのメールアドレス
        userProfile.emailVerifiedBoolean-メールアドレスは認証済みかどうか
        • true | false
          • true: 認証完了
          • false: 認証が必要
        userProfile.empNoString-SSO Userの社員番号
        userProfile.phoneCountryCodeString-SSO Userの国番号
        userProfile.phoneNoString-SSO Userの携帯電話番号
        userProfile.phoneNoVerifiedBoolean-携帯電話番号は認証済みかどうか
        • true | false
          • true: 認証完了
          • false: 認証が必要
        userProfile.deptNameString-SSO Userの部署名
        accessRulesObject-アクセスルール情報
        accessRules.consoleAccessAllowedBoolean-コンソールアクセスを許可するかどうか
        • true | false
          • true: 許可
          • false: 許可しない
        accessRules.apiAccessAllowedBoolean-API Gatewayアクセスを許可するかどうか
        • true | false
          • true: 許可
          • false: 許可しない
        statusString-SSO Userの状態
        • active | suspended
          • active: 使用中(有効化)
          • suspended: 停止(無効化)
        lastLoginAtString-SSO Userの最終アクセス日時
        • ISO 8601形式
        createdAtString-SSO Userの作成日時
        • ISO 8601形式
        updatedAtString-SSO Userの更新日時
        • ISO 8601形式
        descriptionString-SSO Userの説明

        レスポンスステータスコード

        Ncloud Single Sign-On APIで共通して使用されるレスポンスステータスコードの詳細は、Ncloud Single Sign-Onのレスポンスステータスコードをご参照ください。

        レスポンス例

        レスポンスのサンプルコードは次の通りです。

        {
            "page": 0,
            "totalPages": 1,
            "totalItems": 1,
            "isFirst": true,
            "isLast": true,
            "hasPrevious": false,
            "hasNext": false,
            "items": [
                {
                    "userId": "4e6bf5f2-****-****-****-3ffcef11bb7e",
                    "loginId": "******@ncloud.com",
                    "nrn": "nrn:PUB:SSO::*******:User/4e6bf5f2-****-****-****-3ffcef11bb7e",
                    "userProfile": {
                        "firstName": "太郎",
                        "lastName": "田中",
                        "email": "******@ncloud.com",
                        "empNo": "00112233",
                        "phoneCountryCode": "82",
                        "phoneNo": "010-0000-0000",
                        "deptName": "部署"
                    },
                    "accessRules": {
                        "consoleAccessAllowed": true,
                        "apiAccessAllowed": true
                    },
                    "status": "active",
                    "createdAt": "2025-01-13T02:54:42Z",
                    "updatedAt": "2025-01-13T05:25:45Z",
                    "description": "SSO User"
                }
            ]
        }
        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.