Please enable JavaScript to view this site.

QPR Knowledge Base 2023.1

  •      
  • Navigation: Developer's Guide > QPR API > The Object Model > QPR Modeling > PGApplication Commands

    GetUserName

    Scroll Prev Top Next More

    Revision history:

    Introduced in QPR 7.3.2

    Last changed in QPR 7.4.1

     

    Returns the user/group name of the corresponding user/group ID provided as a parameter.

     

    Synopsis:

     

    PGApplication.GetUserName(UserId, out UserName)

     

    Parameters:

     

    UserId: Integer. ID of some user or group.

    out UserName: String. Variant for the returned user/group name.

     

    Required Rights:

     

    None.

     

    Return Values:

    Below are listed the return values that this function can return:

     

    RV_APPLICATION_QUIT_CALLED

    RV_NOT_CONNECTED_TO_SERVER

    RV_SUCCESS

    RV_USER_NOT_FOUND

     

     

    Example Procedure:

     

    iRet = PGApplication.GetUserName(1234, UserLoginName)