{"action":"created","issue":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3350","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3350/labels{/name}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3350/comments","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3350/events","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3350","id":54440635,"number":3350,"title":"Add CLI info, listusers and listgroups subcommands","user":{"login":"sbesson","id":1355463,"avatar_url":"https://avatars.githubusercontent.com/u/1355463?v=3","gravatar_id":"","url":"https://api.github.com/users/sbesson","html_url":"https://github.com/sbesson","followers_url":"https://api.github.com/users/sbesson/followers","following_url":"https://api.github.com/users/sbesson/following{/other_user}","gists_url":"https://api.github.com/users/sbesson/gists{/gist_id}","starred_url":"https://api.github.com/users/sbesson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbesson/subscriptions","organizations_url":"https://api.github.com/users/sbesson/orgs","repos_url":"https://api.github.com/users/sbesson/repos","events_url":"https://api.github.com/users/sbesson/events{/privacy}","received_events_url":"https://api.github.com/users/sbesson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels/develop","name":"develop","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-15T11:48:50Z","updated_at":"2015-01-19T18:24:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3350","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3350","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3350.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3350.patch"},"body":"Fixes https://trac.openmicroscopy.org/ome/ticket/12589\r\n\r\nThis PR adds \r\n- a `info` subcommand to both `UserControl` and `GroupControl` plugins. These commands have the same behavior as the `list` subcommand for a subset of users/groups. The following commands should now be accepted\r\n\r\n  ```\r\nbin/omero user info   # Give info about the context user\r\nbin/omero user info user-1\r\nbin/omero user info user-1 --user-id 3 --user-name user-4\r\nbin/omero group info   # Give info about the context user\r\nbin/omero group info read-write1\r\nbin/omero group info read-write1 --group-id 3 --group-name read-annotate-1\r\n```\r\n\r\n- a `bin/omero group listusers` and a `bin/omero user listgroups` subcommands. Both subcommands either take no argument (using the context) or a single argument. The following calls should work:\r\n\r\n  ```\r\nbin/omero group listusers   # Return the users of the context group\r\nbin/omero group listusers read-write1\r\nbin/omero user listgroups   # Return the groups of the context user\r\nbin/omero user listgroups user-6\r\n```\r\n\r\nTo test this PR:\r\n- check the commands above are working in a multi-user/multi-group context\r\n- check the integration tests are passing both for the new commands as well as the `user list` and `group list` subcommands which were refactored as part of this PR\r\n\r\n--no-rebase"},"comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments/70538471","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3350#issuecomment-70538471","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3350","id":70538471,"user":{"login":"ximenesuk","id":1065145,"avatar_url":"https://avatars.githubusercontent.com/u/1065145?v=3","gravatar_id":"","url":"https://api.github.com/users/ximenesuk","html_url":"https://github.com/ximenesuk","followers_url":"https://api.github.com/users/ximenesuk/followers","following_url":"https://api.github.com/users/ximenesuk/following{/other_user}","gists_url":"https://api.github.com/users/ximenesuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ximenesuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ximenesuk/subscriptions","organizations_url":"https://api.github.com/users/ximenesuk/orgs","repos_url":"https://api.github.com/users/ximenesuk/repos","events_url":"https://api.github.com/users/ximenesuk/events{/privacy}","received_events_url":"https://api.github.com/users/ximenesuk/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T18:24:28Z","updated_at":"2015-01-19T18:24:28Z","body":"I've managed to briefly check out the commands and most of the options. I don't know if there is more to come but I'll take another look tomorrow once the later commits have been tested by the CI system."}}