Manage SeqsLab users#

The global administrator can add existing Microsoft Entra ID accounts to the SeqsLab platform and then use the platform’s role-based access control (RBAC) to manage users on SeqsLab.

Important

Only the SeqsLab account assigned to the Global administrator role can run the following commands.

Manage roles#

Use the following command to list all available roles on the SeqsLab platform:

seqslab role list

By default, SeqsLab platform provides a list of built-in roles.

Manage users#

The SeqsLab CLI provides the following commands for user CRUD (create, read, update, delete) management on the SeqsLab platform: user add, user get/list, user update, user delete .

seqslab user add \
    --email viewer@atgenomix.com \
    --name viewer \
    --active \
    --roles "Data Hub Viewer"
seqslab user list
--
[
    {
        "id": "usr_GXHycWt6lHuzzWt",
        "username": "viewer",
        "email": "viewer@atgenomix.com",
        "is_active": true,
        "last_login": null,
        "roles": [
            "Data hub viewer"
        ]
    },
    {
        "id": "usr_nMDlRfVkrVn91uB",
        "username": "admin",
        "email": "admin@atgenomix.com",
        "is_active": true,
        "last_login": "2022-07-22T06:50:28.415342Z",
        "roles": [
            "Global administrator"
        ]
    }
]

seqslab user get --id usr_GXHycWt6lHuzzWt
--
{
    "id": "usr_GXHycWt6lHuzzWt",
    "username": "viewer",
    "email": "viewer@atgenomix.com",
    "is_active": true,
    "last_login": null,
    "roles": [
        "Data hub viewer"
    ]
}
seqslab user update \
    --id usr_GXHycWt6lHuzzWt \
    --active \
    --roles "Data hub Viewer" "Content editor"
--
{
    "id": "usr_GXHycWt6lHuzzWt",
    "username": "viewer",
    "email": "viewer@atgenomix.com",
    "is_active": true,
    "last_login": null,
    "roles": [
        "Content editor",
        "Data hub viewer"
    ]
}

seqslab user delete --id usr_GXHycWt6lHuzzWt
--
In the above example, the user `usr_GXHycWt6lHuzzWt` will be deleted.