gui/backend/gui_plugin/users/UserManagement.py
def add_user_to_group(member_id, group_id, owner=0, web_session=None):
    """Adds user to user group.

    Args:
        member_id (int): User ID
        group_id (int): Group ID
        owner (int): If user is owner
        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:
        try:
            backend.add_user_to_group(db, member_id, group_id, owner)

            result = Response.ok(
                "User has been added to group successfully.")
        except Exception as e:
            result = Response.exception(e)

    return result
Adds user to user group.

    Args:
        member_id (int): User ID
        group_id (int): Group ID
        owner (int): If user is owner
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    
Adds user to user group.
Adds user to user group .
def add_user_to_group(member_id, group_id, owner=0, web_session=None):
    with BackendDatabase(web_session) as db:
        try:
            backend.add_user_to_group(db, member_id, group_id, owner)
            result = Response.ok(
                "User has been added to group successfully.")
        except Exception as e:
            result = Response.exception(e)
    return result
def add_user_to_group ( member_id , group_id , owner = 0 , web_session = None ) : with BackendDatabase ( web_session ) as db : try : backend . add_user_to_group ( db , member_id , group_id , owner ) result = Response . ok ( "User has been added to group successfully." ) except Exception as e : result = Response . exception ( e ) return result
Adds user to user group.
Adds user to user group .
"""Adds user to user group.

    Args:
        member_id (int): User ID
        group_id (int): Group ID
        owner (int): If user is owner
        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 .
member_id
None
group_id
None
owner
If user is owner
If user is owner
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