users

package
v0.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandUsers = &cli.Command{
	Name:      "users",
	Usage:     "List users",
	ArgsUsage: "[--verbose | -v] [--format | -f <format>] [--jq <formula>]",
	Description: `
    List the information of the users.
    Requests "GET /api/v0/users". See https://mackerel.io/api-docs/entry/users#list .
`,
	Action: doUsers,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "format",
			Aliases: []string{"f"},
			Value:   "",
			Usage:   "Output format template",
		},
		&cli.BoolFlag{
			Name:    "verbose",
			Aliases: []string{"v"},
			Usage:   "Verbose output mode",
		},
		jq.CommandLineFlag,
	},
}

Functions

This section is empty.

Types

type User

type User struct {
	ID                      string   `json:"id,omitempty"`
	ScreenName              string   `json:"screenName,omitempty"`
	Email                   string   `json:"email,omitempty"`
	Authority               string   `json:"authority,omitempty"`
	IsInRegistrationProcess bool     `json:"isInRegistrationProcess"`
	IsMFAEnabled            bool     `json:"isMFAEnabled"`
	AuthenticationMethods   []string `json:"authenticationMethods,omitempty"`
	JoinedAt                string   `json:"joinedAt,omitempty"`
}

User defines output json structure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL