Troubleshooting Access Issues
This guide helps you diagnose and fix common access control problems.Common Issues
Issue: User Can’t See Documents They Should
Symptoms: User asks a question but gets “I don’t have information about that” even though relevant documents exist. Diagnostic Steps:-
Check user’s roles
-
Check document’s ACL
- What
aclRoleswere set when uploading? - Does any role match?
- What
-
Verify role matching
- Add the missing role to the user’s roles array
- Add a role the user has to the document’s ACL
- Re-upload the document with corrected ACL
Issue: User Sees Documents They Shouldn’t
Symptoms: AI responses include information from restricted documents. Diagnostic Steps:-
Check if document has ACL
-
Check for overly broad roles
-
Verify role assignment logic
- Add appropriate ACL to unrestricted documents
- Review and fix role assignment logic
- Remove overly permissive roles from users
Issue: Inconsistent Access
Symptoms: User can see some documents but not others with the same intended access level. Diagnostic Steps:-
Audit ACLs across documents
-
Check role naming consistency
- Are you using the same role names everywhere?
- Case matters:
hr≠HR
- Standardize role names (recommend lowercase)
- Re-upload documents with corrected ACLs
- Create a role name registry/enum
Debugging Checklist
Use this checklist when troubleshooting:Debug Logging
Add logging to your integration:Testing Access
Test with Different Roles
Verify Document Upload
After uploading, verify the document was indexed:Common Mistakes
1. Roles Not JSON-Encoded
2. Empty Roles Array
3. Client-Side Role Assignment
4. Forgetting Base Role
Getting Help
If you’re still having issues:-
Gather debug info:
- Exact roles being sent
- Document IDs and their ACLs
- API response (including any error messages)
-
Reproduce consistently:
- Create a minimal test case
- Document steps to reproduce
-
Contact support:
- Email: [email protected]
- Include debug info and test case
FAQ
Why can't I see a document I just uploaded?
Why can't I see a document I just uploaded?
Documents take a few seconds to index. Check the document status - it should be “Indexed” before it appears in search results.
Can I see what ACL a document has?
Can I see what ACL a document has?
Currently, you need to track ACLs on your side. We’re working on an API to retrieve document metadata including ACLs.
How do I give someone access to everything?
How do I give someone access to everything?
Upload documents without ACLs (they’re public to the org), or ensure the user has all the roles used in document ACLs.
Can I change a document's ACL after upload?
Can I change a document's ACL after upload?
Currently, you need to delete and re-upload. We’re working on an update API.