AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Audit Dataset Access

skill-dremio-cli-audit-dataset-access · by dremio

A Claude skill from dremio/cli.

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-dremio-cli-audit-dataset-access

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-dremio-cli-audit-dataset-access)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Audit Dataset Access? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About


name: audit-dataset-access description: Trace grants, role inheritance, and effective permissions for users and datasets in Dremio user_invocable: true triggers:

  • "audit access"
  • "who has access"
  • "check permissions"
  • "role grants"
  • "dataset access"
  • "user permissions"

Audit Dataset Access

Trace who can access a dataset, what roles grant that access, and what effective permissions a user has.

Agent Rules

  • Use --fields on list commands to reduce output size
  • Use drs describe to check parameter schemas before calling unfamiliar commands
  • Never interpolate user input directly into SQL — use it as filter values only
  • Paths must be dot-separated; quote components containing dots: "my.source".table

Step 1: Check Grants on a Dataset

# See the ACL (access control list) for a specific dataset or folder
drs access grants 

This shows:

  • Users with direct grants and their permission level (SELECT, ALTER, MANAGE GRANTS, etc.)
  • Roles with grants on this dataset
  • Inherited permissions from parent folders/spaces

Example:

drs access grants my_source.my_schema.my_table

Step 2: List All Roles

# List all roles in the project
drs access roles

Review the role list to understand the permission hierarchy. Key built-in roles:

  • ADMIN — Full control over the project
  • PUBLIC — Default role assigned to all users

Custom roles will also appear here.

Step 3: Inspect Role Members and Privileges

For each role that has grants on the target dataset:

# See what privileges a role has and where
drs access roles 

This shows:

  • Members of the role (users and groups)
  • All grants held by the role across the catalog

Step 4: Audit a Specific User

# Trace a user's effective permissions across the catalog
drs access audit 

This resolves:

  • Direct grants to the user
  • Grants inherited through role memberships
  • Grants inherited from parent folders/spaces

The output shows the effective permission set — what the user can actually do.

Step 5: Cross-Reference with Query History

Verify whether a user has actually accessed the dataset:

drs query run "SELECT job_id, usr, query, status, start_time
  FROM sys.project.jobs_recent
  WHERE usr = ''
    AND query LIKE '%%'
  ORDER BY start_time DESC LIMIT 10"

Step 6: Check for Overly Broad Access

Look for security risks:

# Find datasets with PUBLIC role access
drs access grants 
# Check if PUBLIC appears in the output

# Find all datasets a role can access
drs access roles 
# Review the grant list for unexpected breadth

Common Access Issues

| Symptom | Diagnosis | Resolution | |---|---|---| | User can't query a table | No grant on table or parent | drs access grants to check; add grant | | User sees table but can't SELECT | Has MANAGE but not SELECT | Check grant type; add SELECT privilege | | Too many people have access | PUBLIC role has grants | Remove PUBLIC grant; use specific roles | | User lost access after move | Grants on old path don't follow | Re-grant on new path | | New team member can't see anything | Not added to any role | Add to appropriate role |

Step 7: Document Findings

Compile the audit results:

  1. Dataset path and its direct grants
  2. Roles with access and their members
  3. Users with effective access (direct + inherited)
  4. Risk items — overly broad grants, PUBLIC access, unused grants
  5. Recommendations — tighten roles, remove stale grants, add missing grants

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.