Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR API > The Object Model > QPR Metrics > SCApplication Commands

GetUserName

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.3.1

Last changed in QPR 7.4.1

 

Returns the user/group name of the user/group ID defined in the function call.

 

Synopsis:

 

SCApplication.GetUserName(UserId, out UserName);

 

Parameters:

 

UserId: ID of the user or group whose name is sought for. Integer.

UserName: Variant for containing the returned user or group name. String.

 

Required Rights:

 

None.

 

Return Values:

 

RV_APPLICATION_QUIT_CALLED

RV_NOT_CONNECTED_TO_SERVER

RV_NOT_AUTHENTICATED

RV_SUCCESS

RV_USER_NOT_FOUND

 

Example Procedure:

 

iRet = SCApplication.GetUserName(1234, Username)