The authorities granted to the user and to the groups to which the user belongs. These include authorities granted to roles that are granted to the user and to the groups to which the user belongs. Authorities granted to a user or to roles granted to the user are considered user authorities. Authorities granted to a group to which the user belongs or to roles granted to the group to which the user belongs are considered group authorities.
Snapshot Level | Logical Data Grouping | Monitor Switch |
---|---|---|
Application | appl | Basic |
Application | appl_info | Basic |
Event Type | Logical Data Grouping | Monitor Switch |
---|---|---|
Connection | event_conn | - |
The authority_bitmap monitor element has the format of an array. Each array element is a single character that represents whether or not the user ID has been granted a specific authority and how the user has received that authority.
Individual array elements are indexed through an index value defined in the sql.h file. The value of an index in the authority_bitmap array is called an authority index. For example, SQL_DBAUTH_SYSADM is the index to determine if the user has SYSADM authority.
authority_bitmap[SQL_DBAUTH_DBADM]
To determine if the DBADM authority is held directly by the user,
verify the following: authority_bitmap[SQL_DBAUTH_DBADM] & SQL_AUTH_ORIGIN_USER