p0 ls
Discover which resources and arguments you can use with P0's request, grant, and allow commands.
Overview
The p0 ls command lets you discover which resources and arguments you can use with P0's request (grant/request) and standing-access (allow) workflows. It:
Lists valid identifiers (ARNs, role names, group IDs, etc.)
Marks items you already have access to with *
Supports filtering and paging
Outputs either human-readable lists or raw JSON
Use p0 ls to eliminate guesswork when constructing p0 grant or p0 allow commands.
Prerequisites
Logged-in user
Network access
Allow HTTPS egress to https://<your-tenant>/o/<org-slug>/command/.
Global Syntax & Flags
p0 ls <integration> <access-type> <argument> [search-term] [options]<integration> <access-type>: the same two words you use with
p0 request, such asaws roleorokta membership.<argument>: the argument or option of that request whose values you want to list. For example,
p0 ls aws role namelists values for the role name, andp0 ls aws role accountlists values for--account.[search-term]: show only values that match this text.
--<option> <value>: narrow the list. Some lists need one, such as
--clusterfor Kubernetes roles.--size N: how many items to display (default: 15).
--json: print the full JSON response and exit.
--approved: show only access you already have or that would be approved automatically.
--principal <email>: list what a different user can request.
--all: list resources available to all users.
--help: show the arguments you can list for any integration or access type.
Providers & Subcommands
Run p0 ls <integration> <access-type> --help to see the exact list of arguments for your organization. Each example below lists values you can pass to the matching p0 request command.
AWS
role:
account,namepermission-set:
account,namegroup:
account,namepolicy:
account,arnsresource:
account,arn,policies
Examples
List the AWS accounts you can request a role in:
List IAM roles containing "ReadOnly":
Find permission sets containing "ReadOnly" in one account:
List IAM groups:
List policies that match AmazonS3:
List resource ARNs matching a bucket:
List the policies you can request on one resource:
Azure
resource:
subscription,resource,role
Examples
List subscriptions:
List resources in a subscription:
List the roles you can request on a resource:
Entra ID and Entra ID (legacy)
membership:
nameassignment (Entra ID only):
name
Examples
List all groups you could request membership in:
List Entra ID roles containing "Reader":
List groups with the legacy integration:
Google Cloud (GCP)
role:
project,namepermission:
project,nameresource:
project,locator,accesses
Examples
List projects:
List roles containing "viewer":
List permissions containing "compute.instances":
List resources in a project:
List the accesses you can request on one resource:
Kubernetes
resource:
cluster,role,locator
Examples
List clusters:
List the roles you can request on a cluster:
List the objects you can scope a request to:
--cluster is required for role and locator, even if your organization has one cluster.
PostgreSQL and MySQL
role:
instance,database,namesql:
instance,database
Examples
List instances:
List roles on an instance:
List databases on an instance:
List MySQL roles on an instance:
If your organization uses the legacy PostgreSQL integration (pg), list instances, then the roles on one instance:
Snowflake
role:
account,user,namesql:
account,user
Examples
List Snowflake roles containing "ANALYST":
List the Snowflake users you can run SQL as:
Databricks
privilege:
catalog,schema,table,volume,function,privilegesadmin:
role,account,workspace
Examples
List catalogs:
List schemas in a catalog:
List tables in a schema:
List workspaces you can request workspace admin on:
Okta
membership:
name
Examples
List all Okta groups available to you:
List groups containing "eng":
SSH
session:
destination,parent,provider,groupgroup:
name,destination,provider,parentparent:
parent,provider
Examples
List all SSH groups:
Show instances matching "prod-web":
Show AWS instances only:
List accounts and projects matching "devs":
Google Workspace
membership:
name
Examples
List all Google Workspace groups:
List groups containing "marketing":
Other integrations
GitHub
p0 ls github role repository
p0 ls github role role --repository my-github-org/api
p0 ls github team team
Docker Hub
p0 ls docker role organization
1Password
p0 ls 1password item account
p0 ls 1password item vault --account acme.1password.com
ClickHouse Cloud
p0 ls clickhouse sql service
p0 ls clickhouse sql object --service prod
Oracle Cloud
p0 ls oci group groupId
Tailscale
p0 ls tailscale posture target
p0 ls tailscale posture target --tailnet T1234CNTRL
p0 ls tailscale posture device
Salesforce
p0 ls salesforce permission-set id
Cloudflare
p0 ls cloudflare group id
Grafana Cloud
p0 ls grafana-cloud group id
Custom application
p0 ls app access locator
Custom resource
p0 ls custom resource item --application <application>
Cloudflare (AI)
p0 ls cloudflare-ai permission account
p0 ls cloudflare-ai permission zone --account acme-prod
p0 ls cloudflare-ai permission policies --account acme-prod --zone example.com
Miro (AI)
p0 ls miro-ai board team
p0 ls miro-ai board board --team design
AI Gateway
p0 ls agentic tool server --gateway <gateway>
Access bundle
p0 ls bundle request bundleId
Output Details
Human mode
Marks items you already have (isPreexisting) with *.
Shows "Showing the first N…" and suggests filters if truncated.
Aligns key and value columns; long entries wrap with dimmed metadata.
JSON mode
Outputs:
Last updated