{"action":"created","issue":{"url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-release/issues/63","repository_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-release","labels_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-release/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-release/issues/63/comments","events_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-release/issues/63/events","html_url":"https://github.com/IBM-Cloud/ibm-cloud-cli-release/issues/63","id":376605626,"node_id":"MDU6SXNzdWUzNzY2MDU2MjY=","number":63,"title":"'ibmcloud account org-user-remove' with the account owner weird behavior","user":{"login":"jmgalvez","id":9135518,"node_id":"MDQ6VXNlcjkxMzU1MTg=","avatar_url":"https://avatars2.githubusercontent.com/u/9135518?v=4","gravatar_id":"","url":"https://api.github.com/users/jmgalvez","html_url":"https://github.com/jmgalvez","followers_url":"https://api.github.com/users/jmgalvez/followers","following_url":"https://api.github.com/users/jmgalvez/following{/other_user}","gists_url":"https://api.github.com/users/jmgalvez/gists{/gist_id}","starred_url":"https://api.github.com/users/jmgalvez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmgalvez/subscriptions","organizations_url":"https://api.github.com/users/jmgalvez/orgs","repos_url":"https://api.github.com/users/jmgalvez/repos","events_url":"https://api.github.com/users/jmgalvez/events{/privacy}","received_events_url":"https://api.github.com/users/jmgalvez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-01T23:11:17Z","updated_at":"2018-12-17T18:20:27Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\nWhen I run the command: _'ibmcloud account org-user-remove <owneraccountuser> ORG -f'_, it revokes the access to that ORG because you cannot see the ORG anymore with both the CLI and the WEB (console.bluemix.net), although it seems to be that ORG exists already somewhere.. As mentioned, the user should be the account owner. \r\n\r\nSteps to reproduce it:\r\n\r\n- Use the account owner user. ibmcloud version: 0.11.0\r\n- Create an ORG, let's say 'dev-team-org'\r\n- Create an space, let's say 'dev-space-org'\r\n- Add some other members to the team, roles are indifferent\r\n- Run as account owner -> 'ibmcloud account org-user-remove <owneraccountuser> dev-team-org -f' \r\n- When it finished, run 'ibmcloud account orgs' and the ORG is gone. Go to the WEB and double check.\r\n- Try to create the ORG again, run 'ibmcloud account org-create dev-team-org'\r\n- You will get \"Error response from server. Status code: 409; description: Organization cannot be created because it already exists\"\r\n\r\nWhen you try to delete user-policies to the account owner (IAM) you got a warning saying that you cannot revoke permissions to the owner, even if you run the command as owner.\r\n\r\nWhat can I do to delete the ORGs created definitively or recover them?\r\n"},"comment":{"url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-release/issues/comments/447945809","html_url":"https://github.com/IBM-Cloud/ibm-cloud-cli-release/issues/63#issuecomment-447945809","issue_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-release/issues/63","id":447945809,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzk0NTgwOQ==","user":{"login":"boyang9527","id":5013402,"node_id":"MDQ6VXNlcjUwMTM0MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/5013402?v=4","gravatar_id":"","url":"https://api.github.com/users/boyang9527","html_url":"https://github.com/boyang9527","followers_url":"https://api.github.com/users/boyang9527/followers","following_url":"https://api.github.com/users/boyang9527/following{/other_user}","gists_url":"https://api.github.com/users/boyang9527/gists{/gist_id}","starred_url":"https://api.github.com/users/boyang9527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyang9527/subscriptions","organizations_url":"https://api.github.com/users/boyang9527/orgs","repos_url":"https://api.github.com/users/boyang9527/repos","events_url":"https://api.github.com/users/boyang9527/events{/privacy}","received_events_url":"https://api.github.com/users/boyang9527/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T18:20:27Z","updated_at":"2018-12-17T18:20:27Z","author_association":"COLLABORATOR","body":"'ibmcloud account org-user-remove` will not remove the org.  Can you post the full log?"}}
{"actor":{"display_login":"boyang9527"}}