{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Treasure Code","product_name":"Treasure Code","type":"markdown"},"seo":{"title":"tdx policy - Access Control Policies | Treasure Data","description":"Inspect access control policies and permissions in your Treasure Data account with tdx policy commands.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]},"image":"/assets/og-image.ba836864a30434f560a4f7720f8a09019ad30ff828b20c5052ae933ba7121524.d7ef4821.png"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"policy-commands","__idx":0},"children":["Policy Commands"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Inspect access control policies and permissions in your Treasure AI account."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"commands","__idx":1},"children":["Commands"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx policy                    # Show your policies and effective permissions\ntdx policy list               # List all policies in the account (admin only)\ntdx policy show <policy>      # Show a specific policy's details (admin only)\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"show-my-permissions","__idx":2},"children":["Show My Permissions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Display the current user's assigned policies and effective permissions. Available to all users."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx policy\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"👤 Jane Smith (jane@example.com) — Administrator\n   us01:12345, user_id:10001\n\n📋 Assigned Policies (3):\n  • Database edit for production, cost\n  • Database manage\n  • WorkflowProject view\n\n🔑 Effective Permissions:\n  WorkflowProject       view, run, edit\n  Segmentation          full\n  MasterSegmentConfigs  view, edit, owner_manage\n  Databases             manage, owner_manage, edit, query, download\n  LlmProject            full, chat\n  Journeys              full, edit, view\n  ...\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"list-all-policies","__idx":3},"children":["List All Policies"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["List all access control policies in the account. Requires admin or delegated admin privileges."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx policy list\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"✔ Found 12 policies\n  • Database edit for production, cost — Auto-generated edit permission on Database for 10001\n  • Database manage — Auto-generated manage permission on Database\n  • Full policy\n  ...\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"show-policy-details","__idx":4},"children":["Show Policy Details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Show a specific policy's permissions and assigned users. Accepts policy name or ID. Requires admin or delegated admin privileges."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# By name\ntdx policy show \"Database manage\"\n\n# By ID\ntdx policy show 80264\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"📋 Database manage (ID: 80264)\n   Auto-generated manage permission on Database\n   5 users assigned\n\n🔑 Permissions:\n  Databases    manage\n\n👥 Assigned Users:\n  • Alice <alice@example.com>\n  • Bob <bob@example.com>\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"permissions","__idx":5},"children":["Permissions"]},{"$$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":"Command"},"children":["Command"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required Role"},"children":["Required Role"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx policy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Any authenticated user (own permissions only)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx policy list"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Admin or delegated admin"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx policy show"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Admin or delegated admin"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"examples","__idx":6},"children":["Examples"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Show your permissions\ntdx policy\n\n# Show your permissions as JSON\ntdx policy --json\n\n# List all policies (admin only)\ntdx policy list\n\n# List policies as JSON (for scripting)\ntdx policy list --json\n\n# Show a specific policy by name (admin only)\ntdx policy show \"Full policy\"\n\n# Show a specific policy by ID (admin only)\ntdx policy show 504729\n\n# Check permissions on a different site\ntdx policy --site jp01\n","lang":"bash"},"children":[]}]},"headings":[{"value":"Policy Commands","id":"policy-commands","depth":1},{"value":"Commands","id":"commands","depth":2},{"value":"Show My Permissions","id":"show-my-permissions","depth":2},{"value":"List All Policies","id":"list-all-policies","depth":2},{"value":"Show Policy Details","id":"show-policy-details","depth":2},{"value":"Permissions","id":"permissions","depth":2},{"value":"Examples","id":"examples","depth":2}],"frontmatter":{"seo":{"title":"tdx policy - Access Control Policies | Treasure Data","description":"Inspect access control policies and permissions in your Treasure Data account with tdx policy commands.","image":"/assets/og-image.ba836864a30434f560a4f7720f8a09019ad30ff828b20c5052ae933ba7121524.d7ef4821.png"}},"lastModified":"2026-05-18T01:25:54.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/treasure-code/commands/policy","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}