cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

where is stored the User Group Membership in database

MM_10991077
12-Amethyst

where is stored the User Group Membership in database

Hello Community,

I am trying to figure out where in database (MySql) is stored User Group Memberships for particular user account. 

I found table "acl_role" but this seems to be related to project only.

Goal is to create a query which link user_id with it's roles/memberships in Codebeamer.

 

MM_10991077_0-1753273248385.png

 

thank you

2 REPLIES 2

 

In Codebeamer, user roles (i.e., User Group Memberships like System Administrator, Support User, etc.) are stored in the database but are not managed directly through theacl_role table — that table is primarily tied to project-level ACLs (Access Control Lists).

To query user group memberships (global roles), you need to join the following tables:

Key Tables:

  • users – stores user account information

  • cb_user_group – stores group definitions (e.g., "System Administrator", "Regular User")

  • cb_user_user_group – mapping table linking users to user groups

SQL Query to Get User Group Memberships:

SELECT 
u.id AS user_id,
u.login_name,
g.name AS group_name
FROM
users u
JOIN
cb_user_user_group ug ON u.id = ug.user_id
JOIN
cb_user_group g ON ug.user_group_id = g.id
WHERE
u.login_name = 'your_user_login';

Notes:

  • Replace 'your_user_login' With the actual login name.

  • This will give all global user group memberships, as seen in the User Group Memberships section of the UI you shared.

  • These roles determine what the user can access across the entire Codebeamer system, not specific projects.

If you need project-specific roles, then yes, you will also need to consider:

  • project_memberships

  • acl_role

  • And associated linking tables.

Thanks,

Shashi Preetham,
+91 8099838001 | shashi@psptechhub.com,
PSPTechHub  ||  World of PTC Thingworx  ||  LinkedIn

Hello pshashipreetham,

unfortunately following tables does not exist in our MySQL database:
cb_user_group

cb_user_user_group

 

Announcements


Top Tags