- The agent is public
- The user has a permission linked to the agent
- An access rule grants the user such a permission
Portal Access and Agent Permissions
Assigning permissions to a user determines which agents they can use. It does not, by itself, authorize that user to enter the client portal. When users sign in to the client portal with an AGO account, non-administrator accounts must also match an active email access rule: a specific email address, their email domain, or the wildcard domain*. Admin accounts are exempt from this portal entry check.
For example, a user can have the seller permission and still receive 401 Unauthorized when opening the portal if no active email rule matches them. A direct agent assignment does not replace that rule either.
This portal entry check is separate from the agent access checks below and from widget authentication.
Public Agents
Toggle Make this agent public in an agent’s Permissions tab to let every user call it — including non-authenticated users — regardless of permissions or rules. Use this for agents meant to be available to everyone (for example, a general help agent) instead of linking the agent to every permission. The public-agent shortcut requires an active agent. Admins can access inactive agents for testing, and an agent assigned as a permission’s default can remain accessible through that permission. To withdraw access, also remove default-agent assignments; do not rely on the status alone.How Access Is Determined
Admins can access any existing agent. Other users can call an active public agent or an agent available through one of their active permissions. A missing agent returns 404 Not Found; an existing agent the user cannot access returns 403 Forbidden. For each active permission, AGO includes its active linked agents and its configured default agent. Direct user assignments and agents from matching email/domain rules supplement a permission group only when that group already has a default agent, an active linked agent, or an active public agent. A direct agent assignment or an agent-only email rule is therefore not sufficient for a user with no active permissions. For predictable access, grant an active permission and link the intended agents to it.
Permissions control customer-facing agents and content. They do not grant admin, viewer, or organization-management roles.
Permissions and User Types
Permissions (also called “user types” or profiles) group users with similar access needs. Each permission can be linked to several agents, and a user can have several permissions.Permission Settings
The permission editor also has Ticket Instructions and Home Page tabs to customize ticket creation and the portal home page for this group.
Default Agent Selection
When the user does not explicitly select an agent, AGO uses the selected permission if it belongs to the user. If no permission was selected, AGO chooses the user’s highest-priority active permission. For that permission:- Use its configured default agent, if present.
- Otherwise, use its first active linked agent, ordered by display order and then name.
- If neither exists, no default agent is resolved from that permission. AGO does not then fall back to an agent from an access rule.
Configuring Permissions
Creating Permissions
- Navigate to Agents → Permissions
- Click Create Permission, or open an existing permission
- Set the name, priority and default agent
- Click Save
- Open each agent the permission should give access to in Agents, and select the permission in its Permissions tab
Granting Permissions with Rules
- Open Agents → Permissions.
- Choose Email-based permissions for email/domain rules, JWT-based permissions for JWT claims, or API-based permissions for data returned by your configured API.
- Create a rule and select the permissions it grants.
- Link the intended agents to those permissions and test with a non-admin account.
Access Control Rules
Matching rules add permissions cumulatively; a higher-priority rule does not revoke grants from another matching rule. Link agents to the granted permissions rather than relying on agents selected on an email rule. These rules determine agent access after entering the application. They do not replace the portal entry check described above. See Access Control Examples for JWT rule setup.Widget Permission Override
When you embed the widget, you can request a permission for the user by its name:permission option instead; with the SDK API, send the X-Widget-Permission header.
The permission is applied only if it is marked Public in its settings, so you decide which permissions the page can request.
Preview a Permission
Users with several selectable permissions can switch between them from the chat. See Preview a User Type.API Reference
For programmatic access to permissions and user management, see:- Public API v1 Reference - Permission and user management
Best Practices
Permission Design
- Group by role: Create permissions matching organizational roles
- Use meaningful priorities: Higher priority for more common roles
- Set defaults thoughtfully: Default agent should serve most use cases
Access Management
- Prefer permissions over direct links: Easier to maintain at scale
- Use access rules for dynamic access: When access depends on user attributes
- Audit regularly: Review who has access to which agents
Troubleshooting Access
- Test with non-admin accounts: Check the actual authentication and permission rules
- Check all pathways: A user might have access through unexpected paths
- Review rule conditions: Access rules can grant unexpected access
Troubleshooting
Issue: Client portal returns 401 despite assigned permissions
Issue: Client portal returns 401 despite assigned permissions
A non-administrator signing in to the portal needs an active email access rule in addition to their agent permissions. Assigning a permission in the user’s profile does not create that rule.
- Open Agents → Permissions → Email-based permissions.
- In Specific Emails, add an active rule for the user’s exact sign-in email, or verify that an active domain rule already covers them.
- Save the rule and retry opening the portal. A new rule can take up to a minute to apply.
Issue: User can't see expected agent
Issue: User can't see expected agent
Problem: Agent doesn’t appear in user’s list.Solutions:
- Verify agent is active (not disabled)
- Check user’s permissions include the agent
- Review which permissions the matching access rules grant
- Test with a non-admin account using the intended authentication method
Issue: Wrong default agent selected
Issue: Wrong default agent selected
Problem: User sees unexpected agent as default.Solutions:
- Check permission priorities (highest number wins)
- Verify the default agent is set on the correct permission
- Check whether the user has a higher-priority permission
Issue: User sees too many agents
Issue: User sees too many agents
Problem: User has access to agents they shouldn’t see.Solutions:
- Audit user’s permissions for unnecessary links
- Review access rules for overly broad conditions
- Check the agents selected on matching email rules
- Consider using more restrictive permissions
Issue: Access rule not granting access
Issue: Access rule not granting access
Problem: User matches rule but can’t access agent.Solutions:
- Verify rule condition syntax is correct
- Check rule is active (not disabled)
- Verify the rule grants an active permission linked to the agent
- Test rule conditions with actual user attributes
Related Documentation
- Access Control Rules - Detailed rule configuration
- Access Control Examples - Common access patterns
- Preview a User Type - Switch the chat to another permission
- Agents - Agent configuration options
