Temporary Permission Grants
Request time-limited, scoped access to specific conversations for debugging and QA.
Temporary permission grants provide time-limited, scoped access to specific resources. They are the recommended way for developers and support engineers to access individual conversations for debugging and quality analysis without requiring broad, permanent role changes.
What You'll Learn
How temporary permission grants work
How to request conversation access using the Agent Forge CLI
How to list and manage active grants
Best practices for least-privilege access
Why Temporary Grants
The default administrator role restricts conversation visibility to conversations associated with the admin's own role. This is correct for production security, but developers debugging specific conversations need targeted access.
Before (broad role): grant org-wide conversation visibility via a custom role. Overly permissive, no expiration, no audit trail.
After (temporary grants): request access to a specific conversation with a justification. The grant expires automatically and is fully auditable.
How It Works
Each request-access call creates three permission grants scoped to the conversation's owner.
Conversation:GetConversation
View conversation metadata and state
Conversation:GetMessage
Read conversation messages
Conversation:GetInteractionInsights
View interaction-level debugging insights
All grants share the same conditions:
conversation_user_idequals the conversation owner's user ID.org_idequals the organization ID.
Using the CLI
Request access
CONVERSATION
Yes
n/a
Conversation URL or 24-char hex ID
--justification / -j
Yes
n/a
Reason for access (minimum 10 characters)
--env / -e
Conditional
Inferred from URL
Environment name
--duration / -d
No
PT2H
ISO 8601 duration (for example PT30M, PT2H, P1D)
--user-email
No
Self (caller)
Email of user to grant access to
--json
No
false
Output results as JSON
List active grants
--env / -e
Yes
n/a
Environment name
--all
No
false
Show all users' grants (not just your own)
--show-expired
No
false
Include expired grants
--json
No
false
Output as JSON
Best Practices
Use temporary grants instead of broad roles
Request access per-conversation as needed rather than maintaining a role with org-wide conversation visibility.
Include meaningful justifications
Justifications create an audit trail. Reference ticket numbers, bug reports, or customer feedback IDs.
Use short durations
The default 2-hour duration is enough for most debugging sessions. Use longer durations (up to P3D) only when necessary.
Grant to specific users
When granting access for a colleague, use --user-email rather than sharing credentials.
Related Topics
Role-Based Permissions: permanent role configuration
Agent Forge CLI reference: full CLI documentation
Last updated
Was this helpful?

