Skip to main content

CHECK YOUR PERMISSIONS

This guide shows you how to check your own permissions on a swamp serve instance without needing admin access.

List everything you can do

swamp access can-i --server wss://swamp.example.com

This returns a summary of all actions you are allowed to perform, based on your identity and the grants that apply to you.

Check a specific permission

swamp access can-i --action run --on 'workflow:@acme/deploy' \
  --server wss://swamp.example.com

This checks whether you can perform the specific action on the specific resource.

Simulate IdP group memberships

If your grants depend on IdP groups, pass --collectives to simulate memberships in the check:

swamp access can-i --action run --on 'workflow:@acme/deploy' \
  --collectives platform-eng --server wss://swamp.example.com