Project

General

Profile

Actions

Feature #3734

closed

Allow user info to use --login as an optional argument

Added by Og Maciel about 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Currently the command user info only accepts --id as a valid argument. During automation, when we create a new user via the CLI there's no way to get the ID for the newly created user (unless you loop through the results of user list). It would be helpful if we could also run hammer user info --login <my new user name>.

  1. hammer user info --help
    Usage:
    hammer user info [OPTIONS]

Options:
--id ID resource id
-h, --help print help


Related issues 3 (0 open3 closed)

Related to Hammer CLI - Feature #3246: Return id of created object in create methodsClosedTomáš Strachota10/14/2013Actions
Has duplicate Hammer CLI - Feature #3469: Allow users to be identified by --loginDuplicate10/22/2013Actions
Blocked by Foreman - Bug #3736: GET /api/users/loginname throws 500 errorClosedDominic Cleal11/23/2013Actions
Actions

Also available in: Atom PDF