Understanding Thena Platform’s security model and access control system
curl -X POST https://api.thena.ai/v1/auth/login \ -H "Content-Type: application/json" \ -d '{"email": "user@example.com", "password": "your-password"}'
{ "subject": { "type": "user", "id": "user123" }, "object": { "type": "ticket", "id": "ticket456" }, "relation": "can_view", "inheritance": ["team_member", "organization_admin"] }
{ "policy": "organization_isolation", "rules": [ { "resource": "*", "effect": "deny", "condition": "resource.org_id != user.org_id" } ] }
{ "team_policy": { "inherit_from": "organization", "override": { "tickets": { "view": "team_members", "edit": "team_leads" } } } }