Listing EIM Users Using OKS

You can list EIM user roles using OKS CLI.

Listing EIM Users Using OKS CLI

The user list command allows you to list EIM users:

Request sample
$ oks-cli user list \
    --profile-name "default" \
    --project-name NAME_OF_PROJECT \
    --output json

This command contains the following options that you need to specify:

  • (optional) profile-name: The name of the profile that you want to use to list EIM users from.

  • project-name: The name of the project in which the EIM users were created.

  • (optional) output: The output format for the response (json | yaml). By default, the response format is in a table format.

The user list command returns the following elements:

  • UserName: The name of the predefined role selected when creating the users. Returned values can be OKSVolumesManager and/or OKSSnapshotsManager.

  • AccessKeys: The ID of the access keys associated with returned user roles.

    • State: The status of the access keys, always ACTIVE.

    • CreationDate: The time when the access keys were created.

    • ExpirationDate: The time when the access keys expire.

Result sample
[
    {
        "UserName": "OKSSnapshotsManager",
        "AccessKeys": [
            {
                "State": "ACTIVE",
                "AccessKeyId": "5MJETB8DH2RBA42PODW6",
                "CreationDate": "2026-04-15T09:27:41.138+0000",
                "ExpirationDate": "2026-04-15T10:27:40.878+0000"
            }
        ]
    },
    {
        "UserName": "OKSVolumesManager",
        "AccessKeys": [
            {
                "State": "ACTIVE",
                "AccessKeyId": "1P9XXOA9LOVBX535TXA3",
                "CreationDate": "2026-04-15T09:22:37.227+0000",
                "ExpirationDate": "2026-04-22T09:22:37.025+0000"
            }
        ]
    }
]

Related Pages

Corresponding API Method