ESS_USERINFO_T, ESS_GROUPINFO_T

Stores information about a user or group. Some of the fields are specific to users and cannot be used for groups. The Access, Expiration, and PwdChgNow fields are the only fields in this structure that can be modified using the API. The fields are:

Note:

Refer also to the locale-specific extended User Info structure, ESS_USERINFOEX_T.

typedef struct ESS_USERINFO_T
{
   /* The items below are 4.X and above */
   ESS_USERNAME_T  Name;        
   ESS_APPNAME_T   AppName;     
   ESS_DBNAME_T    DbName;      
   ESS_BOOL_T      Login;       
   ESS_USHORT_T    Type;        
   ESS_ACCESS_T    Access;      
   ESS_ACCESS_T    MaxAccess;   
   ESS_DATE_T      Expiration;  
   ESS_TIME_T      LastLogin;   
   ESS_TIME_T      DbConnectTime;
   ESS_USHORT_T    FailCount;   
   ESS_LOGINID_T   LoginId;     

   /* The items below are 5.X and above */
   ESS_DESC_T      Description; 
   ESS_EMAIL_T     EMailID;     
   ESS_BOOL_T      LockedOut;     
   ESS_BOOL_T      PwdChgNow;     
   

} ESS_USERINFO_T, *ESS_PUSERINFO_T, **ESS_PPUSERINFO_T,
  ESS_GROUPINFO_T, *ESS_PGROUPINFO_T, **ESS_PPGROUPINFO_T;
Data TypeFieldDescription
ESS_USERNAME_TNameUser or group name
ESS_APPNAME_TAppNameName of currently connected application (if applicable)
ESS_DBNAME_TDbNameName of the currently connected database(if applicable)
ESS_BOOL_TLoginFlag to indicate login status (users only)
ESS_USHORT_TTypeType of the structure (user or group). This field can contain the following values:
  • ESS_TYPE_USER

  • ESS_TYPE_GROUP

ESS_ACCESS_TAccessUser or group assigned default access privileges. Values: any combination of the following bit values:
  • ESS_ACCESS_SUPER /* Supervisor, all bits set */

  • ESS_PRIV_APPCREATE /* App create/delete privilege */

  • ESS_PRIV_USERCREATE /* user create/delete privilege */

ESS_ACCESS_TMaxAccessUser's maximum access privileges (users only, including individual access and access levels due to group membership.
ESS_DATE_TExpirationUser's password expiration date.
ESS_TIME_TLastLoginDate of user's last successful login stated as Greenwich Mean Time (users only).
ESS_TIME_TDbConnectTimeLocal (server) time of database connection. Read-only. Cannot be set by EssSetUser.
ESS_USHORT_TFailCountCount of the failed login attempts since the last successful login (users only).
ESS_LOGINID_TLoginIdThe user login identification tag (users only) .
ESS_DESC_TDescriptionUser/group description.
ESS_EMAIL_TEMailIDUser/group email address.
ESS_BOOL_TLockedOutFlag that user is locked out.
ESS_BOOL_TPwdChgNowFlag that user must change password.