Users, Roles, Privileges, and Sessions

The user access grants are organized by authorization groups.

sys.auths

nametypereferencesdescription
"id"INTEGERThe unique authorization identifier.
"name"VARCHARThe SQL authorization name of the user or role.
"grantor"INTEGERsys.auths.id when grantor > 0The corresponding authorization grantor.

sys.users

nametypereferencesdescription
"name"VARCHARsys.auths.nameThe unique user login name.
"fullname"VARCHARFull name of user.
"default_schema"INTEGERsys.schemas.idThe default schema for this user.
"schema_path"VARCHARThe search path used to find database objects.
"max_memory"BIGINTThe maximum memory allowed for this user. 0 means no limit.
"max_workers"INTEGERThe maximum number of server worker threads allowed for this user. 0 means no limit.
"optimizer"VARCHARsys.optimizers.nameThe optimizer pipeline name.
"default_role"INTEGERsys.auths.idThe role authorization for this user.

sys.db_user_info

sys.db_user_info can only be queried by users who have a select privilege on this table from monetdb.

nametypereferencesdescription
"name"VARCHARsys.auths.nameThe unique user login name.
"fullname"VARCHARFull name of user.
"default_schema"INTEGERsys.schemas.idThe default schema for this user.
"schema_path"VARCHARThe search path used to find database objects.
"max_memory"BIGINTThe maximum memory allowed for this user. 0 means no limit.
"max_workers"INTEGERThe maximum number of server worker threads allowed for this user. 0 means no limit.
"optimizer"VARCHARsys.optimizers.nameThe optimizer pipeline name.
"default_role"INTEGERsys.auths.idThe role authorization for this user.
"password"VARCHAREncrypted password.

sys.roles

nametypereferencesdescription
"id"INTEGERThe unique role identifier.
"name"VARCHARThe role name.
"grantor"INTEGERsys.auths.id when grantor > 0The corresponding authorization grantor.

sys.user_role

nametypereferencesdescription
"login_id"INTEGERsys.auths.idThe corresponding user identifier.
"role_id"INTEGERsys.roles.idThe corresponding role identifier.

sys.privileges

nametypereferencesdescription
"obj_id"INTEGERsys.ids.idThe identifier of the object for which privilege(s) are given to a certain user or role.
"auth_id"INTEGERsys.auths.idThe id of the user or role.
"privileges"INTEGERsys.privilege_codes.privilege_code_idPrivileges classification code, see table sys.privilege_codes.
"grantor"INTEGERsys.auths.id when grantor > 0The corresponding grantor authorization identifier.
"grantable"INTEGERPermission to pass privilege rights to other users or roles.

sys.privilege_codes

nametypereferencesdescription
"privilege_code_id"INTEGERThe unique internal code of a privilege or combination of privileges.
"privilege_code_name"VARCHARA description of the privilege(s) associated with this code.

sys.sessions

nametypereferencesdescription
"sessionid"INTEGERThe internal session identifier.
"username"VARCHARsys.users.nameThe name of the login user who created the session.
"login"TIMESTAMPThe login start timestamp of the session.
"idle"TIMESTAMPThe idle timestamp of the session.
"optimizer"VARCHARsys.optimizers.nameThe optimizer pipeline name.
"sessiontimeout"INTEGERThe session timeout time in milliseconds, 0 means timeout is disabled.
"querytimeout"INTEGERThe query execution timeout time in milliseconds, 0 means timeout is disabled.
"workerlimit"INTEGERThe maximum number of worker threads allowed, 0 means limit is disabled.
"memorylimit"INTEGERThe memory limit in MB for this session, 0 means limit is disabled.
"language"VARCHARThe language (either sql or mal) used by this session.
"peer"VARCHARThe IP address and port number (or alternatively Unix socket) of the application which started this session.
"hostname"VARCHARThe hostname of the application which started this session.
"application"VARCHARThe name of the application which started this session.
"client"VARCHARThe name of the client library used to start this session.
"clientpid"BIGINTThe process id (on the host os) of the application which started this session.
"remark"VARCHARA remark text which the client application can set.

sys.clientinfo_properties

nametypereferencesdescription
"prop"VARCHARThe unique name of the supported client info property. To be used as first arg of function sys.setclientinfo(property string, value string).
"session_attr"VARCHARThe associated name of the column in the sys.sessions view.