Role-based Access Control
The role-based access control (RBAC) in Langfuse is based on organizations, projects, and roles:
Organizations
are the top-level entities that contain projects.Projects
group all Langfuse data to allow for fine-grained role-based access control (RBAC).Roles
define the permissions of users within an organization and project:- By default, users get assigned a role on the organizational level.
- For more fine-grained control, users can be assigned project-roles. This is useful when you want to differentiate permissions for different projects within the same organization.
API Keys
are used to authenticate with the Langfuse API. They are associated with a project and can be used to access the project's data programmatically. API keys are not tied to a user.
Access Organizations and Projects
You can easily switch between organizations and projects using the dropdowns in the top navigation bar.
Roles and Scopes
Owner
: has all permissionsAdmin
: can edit the project settings and grant access to other usersMember
: can view all metrics & create scores, but cannot configure the projectViewer
: view-only access to the project and organization, most of the configuration is hiddenNone
: no default access to the organization, to be used when user should have access to a single project only
Managing users
Add a new user to an organization
In the organization settings, you can add users via their email address and assign them a role. They will receive an email notification and will be able to access the organization once they log in. Users who do not have a Langfuse account yet, will be listed as pending invites until they sign up.
Changing user roles
Any user with the members:CUD
permission can change the role of a user in the organization settings. This will affect the user's permissions across all projects in the organization. Users can only assign roles that are lower or equal to their own role.
Managing Projects
Add a new project
Any user with the projects:create
permission can create a new project within a Langfuse organization.
Transfer a project to another organization
Only users with the projects:transfer_organization
permission can transfer a project to another organization. This will remove the project from the current organization and add it to the new one. Access to the project will depend on the roles configured in the new organization.
During this process, no data will be lost, all project settings, data, and configurations will be transferred to the new organization. The project remains fully operational as API keys, settings (except for access management), and data will remain unchanged and associated with the project. All features (e.g. tracing, prompt management) will continue to work without any interruption.
Project-level roles
- HobbyNot Available
- ProNot Available
- TeamFull
- Self HostedEnterprise Edition(Enterprise)
Users by default inherit the role of the organization they are part of. For more fine-grained control, you can assign a user a role on the project level. This is useful when you want to differentiate permissions for different projects within the same organization.
If a project-level role is assigned, it will override the organization-level role for that project.
If you want to give a user access to only certain projects within an organization, you can set their role to None
on the organization level and then assign them a role on the project level.