gui/backend/gui_plugin/users/UserManagement.py
def list_user_roles(username, web_session=None):
    """List the granted roles for a given user.

    Args:
        username (str): The name of the user
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    """
    with BackendDatabase(web_session) as db:
        return db.select('''SELECT r.name, r.description
            FROM user u
                INNER JOIN user_has_role u_r
                    ON u.id = u_r.user_id
                INNER JOIN role r
                    ON u_r.role_id=r.id
            WHERE upper(u.name) = upper(?)''', (username,))
List the granted roles for a given user.

    Args:
        username (str): The name of the user
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    
List the granted roles for a given user.
List the granted roles for a given user .
def list_user_roles(username, web_session=None):
    with BackendDatabase(web_session) as db:
        return db.select('''SELECT r.name, r.description
            FROM user u
                INNER JOIN user_has_role u_r
                    ON u.id = u_r.user_id
                INNER JOIN role r
                    ON u_r.role_id=r.id
            WHERE upper(u.name) = upper(?)''', (username,))
def list_user_roles ( username , web_session = None ) : with BackendDatabase ( web_session ) as db : return db . select ( '''SELECT r.name, r.description
            FROM user u
                INNER JOIN user_has_role u_r
                    ON u.id = u_r.user_id
                INNER JOIN role r
                    ON u_r.role_id=r.id
            WHERE upper(u.name) = upper(?)''' , ( username , ) )
List the granted roles for a given user.
List the granted roles for a given user .
"""List the granted roles for a given user.

    Args:
        username (str): The name of the user
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    """
The generated shell request record.
The generated shell request record .
username
The name of the user
The name of the user
web_session
The webserver session object, optional. Will be
passed in by the webserver automatically
The webserver session object optional . Will be passed in by the webserver automatically