Skip to main content

Assign Roles

Assigning a role is the first mandatory step in user authorization. A role defines the user's fundamental capabilities within the AI/Run CodeMie platform.

Available Roles​

RolePermissions & Configuration
adminGlobal Platform Administrator.

This role grants the highest level of access and does not require any additional attributes.

Permissions include:
• Managing all assistants on the platform
• Creating projects
• Creating global integrations
developerBase role for project-level access.

This role does nothing on its own. It always requires at least one attribute (applications or applications_admin) to grant the user access to specific projects.

How to Assign a Role​

Follow these steps to assign a role to a user in Keycloak:

1. Navigate to User Details​

From the User list in the codemie-prod realm, click on the username of the user you want to configure.

User List

2. Open Role Mappings​

In the User details page, navigate to the Role mappings tab.

Role Mappings Tab

3. Assign Role​

Click Assign role and select Realm roles from the dropdown menu.

Assign Role Button

4. Select and Confirm​

  1. Select the appropriate role (admin or developer)
  2. Click the Assign button to confirm

Select Role

5. Verify Assignment​

After assignment, the role should appear in the user's role mappings list. The user now has the basic permission to sign into the platform.

Next Steps​

After assigning a role, the configuration path depends on the role assigned and the deployment mode:

For admin role users: Configuration is complete in both modes. The user can sign in with full platform access.

For developer role users:

  • Keycloak-managed mode (ENABLE_USER_MANAGEMENT=False) — continue to Assign Attributes to grant project access via Keycloak attributes. Without attributes, developer users cannot access any projects.
  • Platform-managed mode (ENABLE_USER_MANAGEMENT=True) — no further Keycloak configuration needed. The user can sign in immediately. A Platform Admin then assigns them to projects through the in-app UI: see Project & User Management.