Legacy Knowledge Base
Published Jun. 30, 2025

How to refer to site names, site members, and site roles from the database

Written By

Shimada Taro

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • How do I reference a site name, site member, or site roll from the database?

Environment

  • DXP 7.0+

solution

  • Please refer to the site name
    "Group_.name".
  • Site member names
    "Users_Groups".
    Each line is paired with a user ID and the site ID to which the user belongs.

    Users_Groups.groupId = Group_.groupId
    Users_Groups.userId = User_.userId
  • Site member permissions
    The roles that each user has, not just Cytrol, are managed by "Users_Roles".
    Each line is paired with a user ID and the role ID to which it is assigned.

    Users_Roles.roleId = Role_.roleId
    Users_Roles.useId = User_.userId
  • Roles used at the site
    are managed in the "UserGroupRole" table.respectively
    userId:ユーザーID
    groupId:サイトID
    roleId:ロールID
    The following is a summary of the results of the survey.

    You can find the corresponding roleId for "Site Administrator" in the "UserGroupRole" table and browse users and sites fromuserId,groupId.
Did this article resolve your issue ?

Legacy Knowledge Base