Permit icon

Permit

Interact with Permit.io authorization service

Check

AI-generated

Summary

Checks if a user has permission to perform an action on a resource within a tenant.

Inputs

  • user (required) — User identifier
  • action (required) — Action to check
  • resource (required) — Resource to check access to
  • tenant — The tenant (defaults to 'default')
  • enableAbacCheck — Whether to enable ABAC with auto-extracted attributes
  • resourceKey — Specific resource instance key (required for ReBAC)

Output shape

object

The permission check result from the Permit.io API, typically including authorization status and policy matching details.

Examples

Example 1: Check if user 'alice' can 'read' on resource 'doc123' in tenant 'default'.

user='alice', action='read', resource='doc123', tenant='default'

Discussion