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 Type | Field | Description |
---|---|---|
ESS_USERNAME_T | Name | User or group name |
ESS_APPNAME_T | AppName | Name of currently connected application (if applicable) |
ESS_DBNAME_T | DbName | Name of the currently connected database(if applicable) |
ESS_BOOL_T | Login | Flag to indicate login status (users only) |
ESS_USHORT_T | Type | Type of the structure (user or group). This field can contain the following values:
|
ESS_ACCESS_T | Access | User or group assigned default access privileges. Values: any combination of the following bit values:
|
ESS_ACCESS_T | MaxAccess | User's maximum access privileges (users only, including individual access and access levels due to group membership. |
ESS_DATE_T | Expiration | User's password expiration date. |
ESS_TIME_T | LastLogin | Date of user's last successful login stated as Greenwich Mean Time (users only). |
ESS_TIME_T | DbConnectTime | Local (server) time of database connection. Read-only. Cannot be set by EssSetUser. |
ESS_USHORT_T | FailCount | Count of the failed login attempts since the last successful login (users only). |
ESS_LOGINID_T | LoginId | The user login identification tag (users only) . |
ESS_DESC_T | Description | User/group description. |
ESS_EMAIL_T | EMailID | User/group email address. |
ESS_BOOL_T | LockedOut | Flag that user is locked out. |
ESS_BOOL_T | PwdChgNow | Flag that user must change password. |