{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"API を通じた認証パーミッションの設定","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"api-を通じた認証パーミッションの設定","__idx":0},"children":["API を通じた認証パーミッションの設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data の Policy-Based Permissions を使用すると、どのユーザーが Treasure Data との間でデータのインポートおよびエクスポートを行えるかを選択できます。Treasure コンソール を通じてポリシーの設定、作成、ユーザーへの割り当てを行うことができますが、認証パーミッションまたはアクセス制御ポリシーは API を通じて設定する必要があります。これには、完全なパーミッションの設定、パーミッションの変更、または認証パーミッションの割り当てが含まれる場合があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["API の操作は、Web Console で見られる設定とは異なります。UI での「View」という用語は、API を通じて認証パーミッションを設定する際には「use」になります。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["管理者が認証に対する詳細なパーミッションを有効にしていない場合、同じ動作やペイロードが表示されない可能性があります。この機能を有効にするには、カスタマーサクセス担当者にお問い合わせください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証を設定する際には、基本的な用語を理解しておくことが重要です。"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["用語"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentications"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data がデータを交換するための認証を作成することを許可します:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["use_limited"]},": ユーザーに表示および使用パーミッションを含む制限された認証セットを追加します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["use"]},": すべての認証に対するグローバルな表示および使用アクセスのパーミッションをユーザーに付与します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["owner_manage"]},": ユーザーに自分自身の認証を作成し、自分が作成した認証の表示、使用、編集、削除を行うパーミッションを付与します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["full"]},": すべての認証に対するグローバルな表示、編集、使用アクセスのパーミッションをユーザーに付与します。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しい認証を作成した後、データに使用するドキュメントの種類を指定して新しいソースを作成できます。この設定により、認証がアクセス可能な場合にソースへのアクセスパーミッションが有効になります。アクセス可能な認証は、所有している Authentication パーミッションに依存します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["たとえば、Authentications/use_limited を持っている場合、指定された認証からのみ作成されたソースにアクセスできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意:"]}," Policy Based Permissions の最新バージョンでは、sources:full は sources:restricted になります。"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Destinations"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証を作成した後、クエリやアクティベーションを設定して、特定の場所にデータをエクスポートできます。利用可能なすべての宛先に対する使用パーミッションは、Authentications パーミッションに依存します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意:"]}," Policy Based Permissions の最新バージョンでは、destinations:full は destinations:restricted になります。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ユーザーのアクティベーションへのアクセスは、マスターセグメントオーナーの認証パーミッションと自身の認証アクセスを組み合わせたものに依存します。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/control-panel/security/policies/how-authentications-permissions-affect-activations-in-the-audience-studio"},"children":["Audience Studio でのアクティベーションに認証パーミッションがどのように影響するか"]},"をご確認ください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ポリシー設定プロトコルに関する知識"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のポリシーの ID"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["特定のユーザーに割り当てられた空のポリシー"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/control-panel/security/policies/permission-policy-api"},"children":["Policy-Based Permissions"]}," の API リファレンス"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ポリシー-id-とポリシー名の既存リストの表示","__idx":2},"children":["ポリシー ID とポリシー名の既存リストの表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のコマンドを使用すると、既存のポリシーに関するすべての情報を取得できます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コマンドラインから、GET コマンドを使用してポリシー API を呼び出し、ポリシー名または ID を取得します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET /v3/access_control/policies\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["レスポンスには、id、account_id、ポリシー名、ポリシーの説明、特定のポリシーに割り当てられたユーザー数など、ポリシーに関する識別情報が含まれます。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"[\n  {\n    \"id\": 67,\n    \"account_id\": 123,\n    \"name\": \"some_policy\",\n    \"description\": \"written about the policy\",\n    \"user_count\": 3\n  }\n]\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ポリシー-id-によるポリシーパーミッションのリストの表示","__idx":3},"children":["ポリシー ID によるポリシーパーミッションのリストの表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のコマンドを使用すると、ポリシーのパーミッションに関する情報を取得できます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["GET コマンドと ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["policy_id"]}," を使用して、ポリシーに関連付けられたパーミッションのリストを表示します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET /v3/access_control/policies/:policy_id/permissions\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["レスポンスで特定のポリシーに定義されたパーミッションを確認します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"WorkflowProject\": [\n    {\n      \"operation\": \"view\"\n  }\n],\n\"WorkflowProjectLevel\": [\n  {\n    \"operation\": \"view\",\n    \"name\": \"my_wf\"\n  }\n],\n\"Segmentation\": [\n  {\n    \"operation\": \"full\"\n  }\n],\n         \"MasterSegmentConfigs\": [\n           {\n             \"operation\": \"view\"\n           }\n         ],\n         \"MasterSegmentConfig\": [\n           {\n             \"operation\": \"view\",\n             \"id\": \"42\"\n           }\n         ],\n         \"SegmentAllFolders\": [\n           {\n             \"operation\": \"view\",\n             \"audience_id\": \"42\"\n           }\n         ],\n         \"SegmentFolder\": [\n           {\n             \"operation\": \"view\",\n             \"id\": \"42\"\n           }\n         ],\n         \"Authentications\": [\n           {\n             \"operation\": \"use\"\n           }\n         ],\n         \"Sources\": [\n           {\n             \"operation\": \"restricted\"\n           }\n         ],\n         \"Destinations\": [\n           {\n             \"operation\": \"restricted\"\n           }\n]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ユーザーの既存のポリシーを表示する","__idx":4},"children":["ユーザーの既存のポリシーを表示する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のコマンドを使用して、ユーザーのポリシーに関する情報を取得できます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["GETコマンドと",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_id"]},"を使用して、ユーザーの現在のポリシーを表示します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET /v3/access_control/users/:user_id/policies\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["レスポンスで特定のユーザーのポリシー権限を確認します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"[\n  {\n    \"id\": 62,\n    \"account_id\": 123,\n    \"name\": \"some_policy\",\n    \"description\": \"written about the policy\",\n    \"user_count\": 3\n  }\n]\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"特定のユーザーにポリシーを割り当てる","__idx":5},"children":["特定のユーザーにポリシーを割り当てる"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のコマンドを使用して、特定のユーザーにポリシーまたはポリシーグループを割り当てることができます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PATCHコマンドと",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_id"]},"を使用して、ユーザーのポリシーを更新します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"PATCH /v3/access_control/users/:user_id/policies\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロードに、ユーザーのプロファイルに追加する新しいポリシーを追加します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"policy_ids\": [\n    \"62\",\n    \"67\"\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ユーザーポリシーと権限を検証する","__idx":6},"children":["ユーザーポリシーと権限を検証する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_id"]},"を使用してGETコマンドで、正しいポリシーと権限が追加されたことを確認できます。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"GET /v3/access_control/users/:user_id\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["レスポンスでユーザーのポリシー権限を確認します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"account_id\": \"123\",\n  \"user_id\": \"2629\",\n  \"permissions\": {\n    \"Authentications\": [\n      {\n        \"operation\": \"use\"\n      }\n    ],\n    \"Sources\": [\n      {\n        \"operation\": \"restricted\"\n      }\n    ],\n    \"Destinations\": [\n      {\n        \"operation\": \"restricted\"\n      }\n    ]\n  },\n  \"policies\": [\n    {\n      \"id\": \"67\",\n      \"account_id\": \"123\",\n      \"name\": \"some_policy\",\n      \"description\": \"\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"認証権限をフルに設定する","__idx":7},"children":["認証権限をフルに設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証をフル権限に設定するには、正しいポリシーIDで適切なAPIを呼び出す必要があります。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PATCHコマンドと特定のpolicy_idを使用して、ポリシー権限を設定します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"PATCH /v3/access_control/policies/:policy_id/permissions\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロードで、認証の操作をfullに設定します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Authentications\": [\n    {\n      \"operation\": \"full\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"認証権限をなしに変更する","__idx":8},"children":["認証権限をなしに変更する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証に空の配列を渡すことで、認証権限をなしに設定できます。これは権限なしを示します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PATCHコマンドを使用して認証権限を変更します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"PATCH /v3/access_control/policies/:policy_id/permissions\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロードで、認証に空の配列を設定します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Authentications\": []\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"認証を表示のみに割り当てソース権限を制限付きに設定する","__idx":9},"children":["認証を表示のみに割り当て、ソース権限を制限付きに設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証権限をuseに、ソース権限をrestrictedに割り当てることができます。この権限では、ユーザーは新しい認証を作成できませんが、認証リストを表示したり、新しいソースを作成したりすることができます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PATCHコマンドを使用して認証権限を変更または設定します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"PATCH /v3/access_control/policies/:policy_id/permissions\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロードで、認証の操作をview、ソースの操作をrestrictedに設定します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Authentication\": [\n    {\n      \"operation\": \"use\"\n    }\n  ],\n  \"Sources\": [\n    {\n      \"operation\": \"restricted\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"use_limited権限の割り当て","__idx":10},"children":["use_limited権限の割り当て"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のコマンドを使用して、指定された認証を表示および使用する権限をユーザーに割り当てることができます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PATCHコマンドを使用して、use_limitedの認証権限を設定します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"PATCH /v3/access_control/policies/:policy_id/permissions\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロードで、指定された認証にuse-permissionを追加します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Authentications\": [\n    {\n      \"operation\": \"use_limited\",\n      \"ids\": \"1,2,6,100\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"owner_managed認証権限の割り当て","__idx":11},"children":["owner_managed認証権限の割り当て"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のコマンドを使用して、ユーザーが自分で認証を作成し、作成した認証を表示、編集、削除、使用できるように、認証にowner_manage権限を設定できます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PATCHを使用して、owner_managedの認証権限を設定します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"PATCH /v3/access_control/policies/:policy_id/permissions\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロードで、ユーザーが自分の認証を作成および管理できるように",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["owner_manage"]},"権限を付与します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Authentications\": [\n    {\n      \"operation\": \"owner_manage\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"認証とソースに対する権限の未割り当て","__idx":12},"children":["認証とソースに対する権限の未割り当て"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これらの権限の変数を削除することで、認証とソースの両方へのアクセスを制限できます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PATCHコマンドを使用して、認証権限を変更します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"PATCH /v3/access_control/policies/:policy_id/permissions\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロードで、認証とソースの変数を削除し、空の配列を渡します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Authentications\": [],\n  \"Sources\": []\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"関連するソース権限を持つuse_limitedへの認証の割り当て","__idx":13},"children":["関連するソース権限を持つuse_limitedへの認証の割り当て"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証権限をuse_limitedに割り当てて、指定された認証内でのアクセスを制限できます。この権限により、ユーザーは指定されたリスト内の認証のみを表示できます。制限されたソース権限を追加すると、ユーザーはリスト内の認証から作成されたソースに対して完全な権限を持つことができます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PATCHコマンドを使用して、認証権限を変更します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"PATCH /v3/access_control/policies/:policy_id/permissions\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロードで、認証操作をuse_limitedに設定し、必要な特定の認証IDを追加し、ソース操作をrestrictedに設定します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Authentications\": [\n    {\n      \"operation\": \"use_limited\",\n      \"ids\": \"1,2,3\"\n    }\n  ],\n  \"Sources\": [\n    {\n      \"operation\": \"restricted\"\n    }\n  ]\n}\n","lang":"json"},"children":[]}]},"headings":[{"value":"API を通じた認証パーミッションの設定","id":"api-を通じた認証パーミッションの設定","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"ポリシー ID とポリシー名の既存リストの表示","id":"ポリシー-id-とポリシー名の既存リストの表示","depth":2},{"value":"ポリシー ID によるポリシーパーミッションのリストの表示","id":"ポリシー-id-によるポリシーパーミッションのリストの表示","depth":2},{"value":"ユーザーの既存のポリシーを表示する","id":"ユーザーの既存のポリシーを表示する","depth":2},{"value":"特定のユーザーにポリシーを割り当てる","id":"特定のユーザーにポリシーを割り当てる","depth":2},{"value":"ユーザーポリシーと権限を検証する","id":"ユーザーポリシーと権限を検証する","depth":2},{"value":"認証権限をフルに設定する","id":"認証権限をフルに設定する","depth":2},{"value":"認証権限をなしに変更する","id":"認証権限をなしに変更する","depth":2},{"value":"認証を表示のみに割り当て、ソース権限を制限付きに設定する","id":"認証を表示のみに割り当てソース権限を制限付きに設定する","depth":2},{"value":"use_limited権限の割り当て","id":"use_limited権限の割り当て","depth":2},{"value":"owner_managed認証権限の割り当て","id":"owner_managed認証権限の割り当て","depth":2},{"value":"認証とソースに対する権限の未割り当て","id":"認証とソースに対する権限の未割り当て","depth":2},{"value":"関連するソース権限を持つuse_limitedへの認証の割り当て","id":"関連するソース権限を持つuse_limitedへの認証の割り当て","depth":2}],"frontmatter":{"seo":{"title":"API を通じた認証パーミッションの設定"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/control-panel/security/policies/setting-authentications-permissions-through-the-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}