ziplinectl set-user

Modify a user's properties.

Usage

ziplinectl set-user [options] <property> <value>

Options

OptionDescription
-i, --idThe ID of the user you want to modify
-h, --helpDisplay options and arguments for this command.

Arguments

ArgumentDescription
<property>The property you want to modify. This can be one of username, password, role, avatar, token, totpSecret
<value>The value you want to set the property to.

Example Usage

Setting a user's password:

ziplinectl set-user -i cm5caqtmc0002hp06k4sjwdg0 password changeme

Setting a user's role, this can be one of SUPERADMIN, ADMIN, or USER:

ziplinectl set-user -i cm5caqtmc0002hp06k4sjwdg0 role SUPERADMIN
zplinectl set-user -i cm5caqtmc0002hp06k4sjwdg0 role ADMIN
zplinectl set-user -i cm5caqtmc0002hp06k4sjwdg0 role USER

Extra

  • Setting a user's avatar is almost never needed, but it should be a base64 encoded image string.
  • Setting a user's token is almost never needed, it will break the methods used to verify the user through the API.


Last updated: 2/2/2025
Edit this page on GitHub