{"action":"closed","issue":{"url":"https://api.github.com/repos/cf-tm-bot/cli/issues/362","repository_url":"https://api.github.com/repos/cf-tm-bot/cli","labels_url":"https://api.github.com/repos/cf-tm-bot/cli/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/cf-tm-bot/cli/issues/362/comments","events_url":"https://api.github.com/repos/cf-tm-bot/cli/issues/362/events","html_url":"https://github.com/cf-tm-bot/cli/issues/362","id":195671730,"number":362,"title":"error when multiple users with the same name exist with `delete-user` - Story Id: 136152875","user":{"login":"cf-tm-bot","id":20690070,"avatar_url":"https://avatars.githubusercontent.com/u/20690070?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-tm-bot","html_url":"https://github.com/cf-tm-bot","followers_url":"https://api.github.com/users/cf-tm-bot/followers","following_url":"https://api.github.com/users/cf-tm-bot/following{/other_user}","gists_url":"https://api.github.com/users/cf-tm-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-tm-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-tm-bot/subscriptions","organizations_url":"https://api.github.com/users/cf-tm-bot/orgs","repos_url":"https://api.github.com/users/cf-tm-bot/repos","events_url":"https://api.github.com/users/cf-tm-bot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-tm-bot/received_events","type":"User","site_admin":false},"labels":[{"id":448530385,"url":"https://api.github.com/repos/cf-tm-bot/cli/labels/delivered","name":"delivered","color":"f08000","default":false},{"id":448531483,"url":"https://api.github.com/repos/cf-tm-bot/cli/labels/feature","name":"feature","color":"ededed","default":false},{"id":448532347,"url":"https://api.github.com/repos/cf-tm-bot/cli/labels/uaa","name":"uaa","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-14T23:07:21Z","updated_at":"2016-12-21T03:06:15Z","closed_at":"2016-12-21T03:06:15Z","body":"#129997693 allows a user to be mapped to an external IdP when creating a user.\nThis story deals with the impact on `delete-user`: if there are multiple same-named users with different `origin`'s, how would the CLI know which to delete? (currently it deletes the first one returned from the API call that returns user ids for the specified username)\n\nDiscussed with Sree, this occurrence is very unlikely. So rather than adding a `--origin` to `delete-user` as well, I prefer to error out for now:\n```\nD:\\Users\\koperd\\Downloads\\bin>cf delete-user jim\n\nReally delete the user jan?> y\nDeleting user jim as admin...\nError: multiple users with that username returned. Please use 'cf curl' instead.\nFAILED\n```\n(I'm open to other, better error messages)\n\n---\n\nMirrors: [story 136152875](https://www.pivotaltracker.com/story/show/136152875) submitted on Dec 14, 2016 UTC\n- **Requester**: Dies Koper\n- **Owners**: Alex Melnik, Nick Wei\n- **Estimate**: 1.0"}}
{"actor":{"display_login":"cf-tm-bot"}}