list_users

This API returns a list of Guardium users and account information.

The list_users API requires that the CLI account issuing the command is associated with a GUI account that has the accessmgr and cli roles. Associate CLI and GUI accounts using the set guiuser CLI command. For more information, see User account, password, and authentication CLI Commands.

This API is available in Guardium V9.5 and later.

REST API syntax

This API is available as a REST service with the GET method. Call this API as follows:
GET https://[Guardium hostname or IP address]:8443/restAPI/user

GuardAPI syntax

list_users

Examples

This command returns a list of all users on this system. For example:

grdapi list_users
Returns the following information:
####### User 3 #######
Username: Fred McDerf
First Name: Fred
Last Name: McDerf
Email: fredmcd@company.com
Disabled: false
Password changed: 2023-08-15 11:26:20
Password expires: 2023-11-13 11:26:20
####### User 1 #######
Username: joan.darcy
First Name: Joan
Last Name: Darcy
Email:joan.darcy@company.com
Disabled: false
Password changed: 2023-08-02 10:00:00
Password expires: 2023-11-01 10:00:00
####### User 20 #######
Username: hadrian.s.wall
First Name: Hadrian
Last Name: Wall
Email:hadrian.s.wall@company.com
Disabled: true
Password changed: 2023-05-12 11:56:00
Password expires: 2023-08-10 11:56:00
ok