List Users

In the following example, the root user is local to this Oracle ZFS Storage Appliance system, and the user1 user is an LDAP, NIS, or AD user. For a directory type user, the user ID, full name, and password are pulled from the directory service, and the password property is not listed. See more information about user types in Understanding Users and Roles in Oracle ZFS Storage Appliance Administration Guide, Release OS8.8.x.

Example Request:

GET /api/user/v1/users HTTP/1.1

Example Result:

{
    "users": [
    {
        "logname": "root",
        "type": "local",
        "uid": 0,
        "fullname": "Super-User",
        "initial_password": true,
        "require_annotation": false,
        "href": "/api/user/v2/users/root"
    },{
        "logname": "user1",
        "type": "directory",
        "uid": user1uid,
        "fullname": "Real Name",
        "require_annotation": false,
        "roles": ["basic"],
        "kiosk_mode": false,
        "kiosk_screen": "status/dashboard",
        "href": "/api/user/v2/users/user1"
    }]
}