Product
Agent Permissions & Access Control
Control who can view, use, and manage AI agents in your organization using groups and role-based access control.
TL;DR
Control who can view, use, and manage AI agents in your organization using groups and role-based access control.
Key Takeaways
- **Organi
Control who can view, use, and manage AI agents in your organization using groups and role-based access control.
Overview
Control which users can view, use, and edit agents.
Permission levels:
- Organization-Wide: All users in org can access
- Group-Restricted: Only members of assigned groups
- Private: Only creator and admins
Configured: Agent Settings → Permissions tab
Permission Model
Access Levels
Agents support three access control models:
| Access Type | Description | Who Can Use |
|---|---|---|
| Public (Organization) | Available to all users in the organization | Everyone |
| Group-Restricted | Only specific groups can access | Selected groups only |
| Private | Only creator and admins can access | Creator + Admins |
Role-Based Control
Different roles have different permissions for agents:
| Role | View Agents | Use Agents | Edit Agents | Delete Agents | Manage Permissions |
|---|---|---|---|---|---|
| Super Admin | All | All | All | All | ✅ |
| Admin | All | All | All | All | ✅ |
| Manager | Assigned | Assigned | Assigned | ❌ | Limited |
| User | Assigned | Assigned | ❌ | ❌ | ❌ |
Setting Up Agent Permissions
Step 1: Create Groups
Groups are collections of users that can be assigned permissions together.
To create a group:
- Navigate to Administration → Groups
- Click Create New Group
- Configure the group:
- Name: e.g., "Customer Support Team"
- Description: "Customer-facing support agents"
- Members: Add users to the group
- Click Save
Best Practices for Groups:
- Organize by department (Sales, Support, Engineering)
- Create role-based groups (Managers, Analysts)
- Use project-based groups for temporary access
- Name groups clearly and descriptively
Step 2: Assign Agents to Groups
Method 1: From Agent Settings
- Open the agent you want to restrict
- Go to Settings → Permissions
- Select Access Type:
- Organization-Wide: All users can access
- Group-Restricted: Only selected groups
- Private: Only you and admins
- If Group-Restricted, select groups:
- Click Add Group
- Select one or more groups
- Groups can have different permission levels
- Click Save
Method 2: From Group Settings
- Navigate to Administration → Groups
- Open the group
- Go to Agents tab
- Click Add Agent
- Select agents to add
- Choose permission level:
- View & Use: Can query the agent
- Edit: Can modify agent settings
- Click Save
Step 3: Add Users to Groups
To add users to a group:
- Navigate to Administration → Groups
- Open the group
- Go to Members tab
- Click Add Members
- Select users from the list or search by name/email
- Assign role within group (optional):
- Member: Standard access
- Manager: Can add/remove members
- Click Add
Bulk User Assignment:
- Import users via CSV: Name, Email, Group
- Use API for programmatic assignment
- Sync with SSO groups (Enterprise)
Permission Scenarios
Scenario 1: Department-Specific Agents
Use Case: Create agents that only specific departments can use.
Setup:
- Create groups:
- "Sales Team"
- "Support Team"
- "Engineering Team"
- Create agents:
- "Sales Agent" → Assign to "Sales Team" group
- "Support Agent" → Assign to "Support Team" group
- "Engineering Agent" → Assign to "Engineering Team"
- Result:
- Sales team only sees and can use Sales Agent
- Support team only has access to Support Agent
- Engineering team only has access to Engineering Agent
Scenario 2: Multi-Level Access
Use Case: Some users need access to multiple agents.
Setup:
- Create groups:
- "Tier 1 Support" → Access to Basic Support Agent
- "Tier 2 Support" → Access to Basic + Advanced Support Agent
- "Support Managers" → Access to all Support Agents + Edit permissions
- Assign users:
- Junior agents → Tier 1 Support group
- Senior agents → Tier 2 Support group
- Managers → Support Managers group
- Result:
- Graduated access based on experience level
- Managers can modify agent configurations
- Users only see relevant agents
Scenario 3: Project-Based Access
Use Case: Temporary access for project teams.
Setup:
- Create group: "Product Launch Q1 2024"
- Add cross-functional team members
- Assign relevant agents:
- Product Documentation Agent
- Marketing Content Agent
- Sales Enablement Agent
- Set expiration date (manual or via API)
- After project completion:
- Remove users from group
- Archive or delete group
- Agent access automatically revoked
Scenario 4: Customer Success with Data Restrictions
Use Case: External consultants need limited access.
Setup:
- Create group: "External Consultants"
- Create agent: "Client-Facing Assistant"
- Data Sources: Only public documentation
- Private Data: Disabled
- Features: No editing, no analytics
- Assign group to agent with "View & Use" only
- Result:
- Consultants can use agent for customer queries
- Cannot access internal data
- Cannot see organization analytics
- Cannot modify agent settings
Advanced Permission Controls
Data Source-Level Permissions
Combine agent permissions with data source restrictions:
Example:
Agent: "Product Documentation Assistant"
├─ Assigned to: "Support Team" group
├─ Data Sources:
│ ├─ Public Docs (All groups)
│ ├─ Internal Wiki (Support Team only)
│ └─ Customer Data (Managers only)
└─ Result: Support team sees public + internal,
Managers see all three
Configuration:
- In Agent Settings → Data Sources
- For each data source, set access control:
- All Agent Users: Anyone who can use agent
- Specific Groups Only: Restrict further
- Agent will only retrieve from data sources user has access to
Permission Inheritance
Groups can inherit permissions from parent groups:
Organization
└─ Support Department
├─ Tier 1 Support
│ └─ Inherits: Basic Support Agent
└─ Tier 2 Support
└─ Inherits: Basic + Advanced Support Agent
Setup:
- Navigate to Administration → Groups
- Create parent group: "Support Department"
- Create child groups with parent relationship
- Assign agents to parent group
- Child groups inherit access automatically
Time-Based Access
Control when agents are available to groups:
Use Cases:
- Temporary contractor access
- Seasonal team expansion
- Trial periods
Configuration:
- Agent Settings → Permissions → Advanced
- For each group, set:
- Start Date: When access begins
- End Date: When access expires
- Timezone: For scheduled access
- Access automatically granted/revoked
Example:
Group: "Holiday Support Staff"
Agent: "Customer Support Agent"
Access: Dec 1, 2024 - Jan 15, 2025
Result: Agent appears/disappears automatically
Managing Permissions at Scale
API-Based Management
Automate permission management via API:
# Add group to agent
curl -X POST https://api.twig.so/api/ai-agent-managers/agent-123/groups \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"groupId": "group-456",
"permission": "VIEW_AND_USE",
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}'
# Add users to group
curl -X POST https://api.twig.so/api/groups/group-456/members \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"userIds": ["user-1", "user-2", "user-3"],
"role": "MEMBER"
}'
Bulk Operations
Via UI:
- Administration → Groups → Select multiple
- Bulk Actions:
- Add agents to multiple groups
- Add users to multiple groups
- Remove access in bulk
- Export permission matrix
Via CSV Import:
AgentId,GroupId,Permission,StartDate,EndDate
agent-1,group-1,VIEW_AND_USE,2024-01-01,
agent-1,group-2,EDIT,2024-01-01,
agent-2,group-1,VIEW_AND_USE,2024-01-01,2024-12-31
SSO Group Sync (Enterprise)
Automatically sync groups from your identity provider:
Supported Providers:
- Azure AD / Microsoft Entra
- Okta
- Google Workspace
- OneLogin
- Custom SAML providers
Setup:
-
Navigate to Administration → SSO
-
Enable Group Sync
-
Map SSO groups to Twig groups:
Azure AD Group "Sales Team" → Twig Group "Sales Team" Azure AD Group "Engineers" → Twig Group "Engineering Team" -
Configure sync frequency:
- Real-time (on login)
- Hourly
- Daily
-
Users automatically added/removed based on SSO groups
Monitoring & Auditing
Permission Audit Logs
Track all permission changes:
View Audit Logs:
- Administration → Audit Logs
- Filter by:
- Event Type: "Permission Change"
- Entity: Agent ID or Group ID
- User: Who made the change
- Date Range
Logged Events:
- Agent access type changed
- Group added/removed from agent
- User added/removed from group
- Permission level changed
- Data source restrictions modified
Example Log Entry:
{
"timestamp": "2024-01-15T10:30:00Z",
"event": "GROUP_ADDED_TO_AGENT",
"actor": "admin@company.com",
"agentId": "agent-123",
"agentName": "Customer Support Agent",
"groupId": "group-456",
"groupName": "Support Team",
"permission": "VIEW_AND_USE",
"changes": {
"before": "ORGANIZATION_WIDE",
"after": "GROUP_RESTRICTED"
}
}
Permission Reports
Generate reports on agent access:
Available Reports:
- Agent Access Matrix
- Which users can access which agents
- Export to CSV/Excel
- Group Membership Report
- Users in each group
- Group assignments per user
- Permission Coverage
- Users with no agent access
- Agents with no assigned groups
- Compliance Report
- Access review status
- Certification requirements
Generate Report:
Administration → Reports → Permission Reports
→ Select report type
→ Set filters and date range
→ Export or schedule
Security Best Practices
1. Principle of Least Privilege
✅ Do:
- Grant minimum necessary access
- Use group-restricted agents by default
- Regular access reviews (quarterly)
- Remove access promptly when users change roles
❌ Don't:
- Make all agents organization-wide
- Grant edit permissions broadly
- Skip access reviews
- Keep inactive users in groups
2. Separation of Duties
For sensitive agents:
- Separate view/use from edit permissions
- Require approval for permission changes
- Implement maker-checker for sensitive data access
3. Regular Audits
Monthly:
- Review group memberships
- Check for unused agent assignments
- Verify external user access
Quarterly:
- Full permission audit
- Recertify user access
- Update group structures
Annually:
- Review permission model
- Update access policies
- Archive old groups/agents
4. Data Classification
Align agent permissions with data sensitivity:
| Data Classification | Agent Access | Approval Required |
|---|---|---|
| Public | Organization-wide | No |
| Internal | Group-restricted | Manager approval |
| Confidential | Private/Limited groups | Admin approval |
| Restricted | Named users only | C-level approval |
Troubleshooting
User Can't See Agent
Check:
- Is user in the organization?
- Is agent set to Organization-Wide or Group-Restricted?
- If Group-Restricted, is user in an assigned group?
- Is user's account active?
- Has user refreshed/logged out and back in?
Solution:
Administration → Groups → [Relevant Group]
→ Members tab → Add User
→ Save → User logs out and back in
Group Not Appearing in Agent Settings
Check:
- Does group exist and have active status?
- Does group have at least one member?
- Do you have permission to assign groups?
Solution:
- Ensure group is active
- Add at least one member to group
- Contact admin if permission issue
Permission Changes Not Taking Effect
Causes:
- Browser cache
- Session not refreshed
- Sync delay (SSO groups)
Solution:
- Have user log out completely
- Clear browser cache
- Log back in
- If SSO sync, wait for scheduled sync or trigger manual sync
Next Steps
- User Permissions & Roles - Detailed user permission model
- Group Management - Advanced group configuration
- SSO Integration - Set up SSO with group sync
- Audit Logs - Comprehensive audit logging
Agent Instructions: Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on the current page URL with the ask query parameter:
GET /dev/product/administration/agent-permissions.md?ask=<question>
The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
Related Pages
Integrations
Industries
Last updated January 26, 2026


