Skip to main content
Users are the individual accounts with access to an organization. Membership starts with an invitation, and what a user can do is determined by the groups they belong to.

Subcommands


list

List users in an organization, along with their state and the number of groups each belongs to. Aliases: list, ls

Flags

FlagDescription
—org stringOrganization ID
—jsonEmit the full JSON payload (mutually exclusive with -q)
-q, —query stringArrayjq filter for value extraction (see Query output with -q)

Example


invite

Invite a user into an organization. A user is identified by their canonical name, which is usually an email address. Whether groups are accepted depends on how the organization authenticates its members:
  • Private organizations — members are added explicitly, so at least one group is required. Omit --group and the CLI presents a group picker.
  • Public organizations — members sign in with an email address on the organization’s domain, and group membership is managed separately, so --group is rejected.
To check which kind an organization is, read its type — adhoc for private, domain for public:
Use nscale groups list to discover the group IDs. For how groups and roles fit together, see Groups and roles. --state sets the state of the user’s membership of this organization, which is what governs their access to it:
  • pending (the default) matches the Console flow — the member is listed as Pending and has no access until they join.
  • active skips that step, so the membership is usable as soon as the person can sign in.
  • suspended creates the membership with access already revoked.
--state active does not bypass account sign-up. If the person has no Nscale account yet, they must still complete the verification email before they can authenticate; the flag only decides whether their membership of this organization is waiting on them to join.

Flags

FlagDescription
—org stringOrganization ID
—email stringThe user’s canonical name, usually an email address
—group stringArrayGroup ID to add the user to (repeatable)
—state stringMembership state — active, pending, or suspended (default pending)
—dry-runPreview the request payload without persisting
-y, —yesAutomatically confirm the invitation
—jsonEmit the full JSON payload (mutually exclusive with -q)
-q, —query stringArrayjq filter for value extraction (see Query output with -q)

Examples


delete

Delete an existing user from an organization.

Flags