Docs

Create and verify a scoped access rule

Begin with a known actor and target, publish deliberately, and test both the work you permit and the work you restrict.

Product v2.0.0Explanation / guide

This page is a rebuild draft for team review. Check your deployed version before applying its instructions.

Outcome and prerequisites

You will define a rule with an explicit subject, action, target, effect, and priority. You need policy-management permission and a known catalog target. Start with synthetic requests in a writable sandbox.

Keep the first rule small

  1. Identify the actor or role and the operation you are governing.
  2. Select the intended tool or resource. A target binding and request selectors must fit the actual request.
  3. Choose an effect and priority. Review overlapping rules; a higher-priority allow can override a lower-priority deny for the same target.
  4. Follow the deployment's policy authoring, review, and publication workflow.
  5. Use Gateway Test or the check endpoint to inspect matched rules and expected decisions.
  6. Run both permitted and restricted requests in an appropriate test environment. Confirm mode and recorded evidence.

Expected results

Useful work remains permitted. The restricted request matches the intended rule and is blocked in enforce mode. The decision explains the relevant scope and rule, rather than merely showing that some denial occurred.

For tool-plus-data calls, inspect additional resource or column targets. An additional-target deny can block a tool that was allowed at its own evaluation stage.

Common mistakes

A rule in draft is not the same as a published rule. A rule bound to the wrong target may never match. Observe and simulate modes may retain a deny verdict while permitting execution. A missing primary allow rule can produce implicit deny unrelated to the restriction you intended to test.

Cleanup

For an exercise, remove its bindings and rule after recording the result. Do not remove a shared rule to make a demo pass. The starter script scopes and cleans up its own records.

Next: Policy decisions, policy troubleshooting, or policy API reference.

About this page and its source

Knowledge ID: guides.govern-access. Reference snapshot: c60ee75. Generated 2026-10-28. Authored explanations accompany source-derived facts; a build date does not establish runtime support.