Skip to content

Endpunkt-Zugriffsrollen

Dieses Dokument zeigt eine Übersicht der Endpunkte der öffentlichen Alan-API und beschreibt für wen einzelne Endpunkte zugänglich sind. Allgemein werden alle Zugriffsrechte auf Endpunkte anhand von Benutzerrollen gesteuert. Die Rollen sind im Benutzermanagement definiert und Benutzern zugewiesen.

Wenn ein Benutzer nicht über eine erforderliche Rolle verfügt, wird der Zugriff auf den Endpunkt verweigert. Zugehörige UI-Elemente werden im Frontend ebenfalls ausgeblendet.

Rollenkonzept

Annahme: Jeder User hat mindestens die Rolle alan-user. Ein User kann mehrere Rollen haben.

RolleBeschreibung
alan-userKann Chatten sowie bestehende Experten und Wissensdatenbanken nutzen
alan-contributorWie User, kann mit Schreibrechten geteilte Ressourcen bearbeiten (Experten, Wissensdatenbanken)
alan-editorWie Contributor, kann Experten und Wissensdatenbanken erstellen, teilen und löschen
alan-adminHat Zugriff auf Admin-Funktionen wie Datenverbindungen, Gruppen oder Tenant-Einstellungen. Bitte beachten Sie: Die Rolle alan-admin enthält nicht automatisch die Berechtigungen der anderen Rollen. Ein Admin muss separate Rollen zugewiesen bekommen, um beispielsweise zu chatten oder Experten und Wissensdatenbanken zu bearbeiten oder zu erstellen.

API-Endpunkte

Die folgende Tabelle listet alle öffentlichen API-Endpunkte und ihre erforderlichen Zugriffsrollen auf.

PfadMethodeRollen
/abilities/systemGETUser, Contributor, Editor
/chats/GETUser, Contributor, Editor
/chats/POSTUser, Contributor, Editor
/chats/GETUser, Contributor, Editor
/chats/PUTUser, Contributor, Editor
/chats/DELETEUser, Contributor, Editor
/chats/{chat_id}/approvePOSTUser, Contributor, Editor
/chats/{chat_id}/generatePOSTUser, Contributor, Editor
/chats/{chat_id}/messages/GETUser, Contributor, Editor
/chats/{chat_id}/messages/GETUser, Contributor, Editor
/chats/{chat_id}/messages/PUTUser, Contributor, Editor
/chats/{chat_id}/messages/{message_id}/files/{chat_file_id}/contentGETUser, Contributor, Editor
/chats/{chat_id}/regeneratePOSTUser, Contributor, Editor
/connectors/GETUser, Contributor, Editor
/connectors/POSTAdmin
/connectors/knowledge-basesGETUser, Contributor, Editor
/connectors/validate-restapiPOSTAdmin
/connectors/GETAdmin
/connectors/PUTAdmin
/connectors/DELETEAdmin
/connectors/{connector_id}/knowledge-basesPOSTEditor
/connectors/{connector_id}/knowledge-basesGETUser, Contributor, Editor
/connectors/{connector_id}/knowledge-bases/PUTContributor, Editor
/connectors/{connector_id}/knowledge-bases/GETUser, Contributor, Editor
/connectors/{connector_id}/knowledge-bases/DELETEEditor
/docsGET
/docsHEAD
/docs/oauth2-redirectGET
/docs/oauth2-redirectHEAD
/experts/GETUser, Contributor, Editor
/experts/POSTEditor
/experts/GETUser, Contributor, Editor
/experts/DELETEEditor
/experts/PUTContributor, Editor
/files/POSTUser, Contributor, Editor
/files/GETUser, Contributor, Editor
/files/PUTUser, Contributor, Editor
/files/GETUser, Contributor, Editor
/files/DELETEUser, Contributor, Editor
/files/{file_id}/chunksGETUser, Contributor, Editor
/files/{file_id}/contentGETUser, Contributor, Editor
/files/{file_id}/plaintextGETUser, Contributor, Editor
/groups/GETAdmin
/groups/POSTAdmin
/groups/GETAdmin
/groups/DELETEAdmin
/groups/PUTAdmin
/health/GET
/llm/generate_streamPOSTUser, Contributor, Editor
/models/GETUser, Contributor, Editor
/notifications/GETUser, Contributor, Editor
/notifications/PUTUser, Contributor, Editor
/oai/chat/completionsPOSTUser, Contributor, Editor
/oai/embeddingsPOSTUser, Contributor, Editor
/oai/modelsGETUser, Contributor, Editor
/oai/models/GETUser, Contributor, Editor
/openapi.jsonGET
/openapi.jsonHEAD
/redocGET
/redocHEAD
/search/POSTUser, Contributor, Editor
/shares/GETUser, Contributor, Editor
/shares/POSTEditor
/shares/receivedGETUser, Contributor, Editor
/shares/recipientsGETUser, Contributor, Editor
/shares/search_recipientsGETUser, Contributor, Editor
/shares/DELETEEditor
/snapshots/POSTUser, Contributor, Editor
/snapshots/GETUser, Contributor, Editor
/snapshots/importPOSTUser, Contributor, Editor
/snapshots/GETUser, Contributor, Editor
/snapshots/DELETEUser, Contributor, Editor
/snapshots/{snapshot_id}/messages/{snapshot_message_id}/files/{snapshot_chat_file_id}/contentGETUser, Contributor, Editor
/tenant/infoGETUser, Contributor, Editor
/tenant/licensesGETAdmin
/tenant/quotaGETAdmin
/tenant/settingsGETAdmin
/tenant/settingsPUTAdmin
/user/GETUser, Contributor, Editor
/user/api-keysPOSTUser, Contributor, Editor
/user/api-keysGETUser, Contributor, Editor
/user/api-keys/GETUser, Contributor, Editor
/user/api-keys/DELETEUser, Contributor, Editor
/user/api-keys/{key_id}/renewPOSTUser, Contributor, Editor
/user/issuerGETUser, Contributor, Editor
/user/settingsGETUser, Contributor, Editor
/user/settingsPUTUser, Contributor, Editor
/user/tokenGETUser, Contributor, Editor
/version/GETUser, Contributor, Editor