inspectUser ​
Command:
inspectUser
Category: Connection & Auth
Status: Production Ready
Description ​
Return comprehensive metadata about a database user including user details, parameters, granted roles, and privileges. This command is useful for security audits, troubleshooting access issues, and understanding user configurations.
Syntax ​
hana-cli inspectUser [user] [options]Aliases ​
iuuserinsUserinspectuser
Command Diagram ​
Parameters ​
Positional Arguments ​
| Parameter | Type | Description |
|---|---|---|
user | string | Database user name to inspect |
Options ​
| Option | Alias | Type | Default | Description |
|---|---|---|---|---|
--user | -u | string | - | Database user name to inspect |
Connection Parameters ​
| Option | Alias | Type | Default | Description |
|---|---|---|---|---|
--admin | -a | boolean | false | Connect via admin (default-env-admin.json) |
--conn | - | string | - | Connection filename to override default-env.json |
Troubleshooting ​
| Option | Alias | Type | Default | Description |
|---|---|---|---|---|
--disableVerbose | --quiet | boolean | false | Disable verbose output - removes all extra output that is only helpful to human readable interface |
--debug | -d | boolean | false | Debug hana-cli itself by adding output of LOTS of intermediate details |
For a complete list of parameters and options, use:
hana-cli inspectUser --helpExamples ​
Basic Usage ​
hana-cli inspectUser --user SYSTEMInspect the SYSTEM user and display comprehensive information including basic user details, parameters, granted roles, and privileges.
Using Positional Argument ​
hana-cli inspectUser DBADMINInspect a user by providing the username as a positional argument.
Inspect Current User ​
hana-cli inspectUser --user $(whoami)Inspect the currently connected user's configuration.
Output Sections ​
The command displays four sections of information:
- User Basic Information: USER_NAME, USER_ID, USERGROUP_NAME, CREATE_TIME, etc.
- User Parameters: Configuration parameters specific to the user
- Granted Roles: All roles assigned to the user with grantor information
- Granted Privileges: Direct privileges assigned to the user
For a complete list of parameters and options, use:
hana-cli inspectUser --helpRelated Commands ​
See the Commands Reference for other commands in this category.