{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3555","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3555/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3555/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3555/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3555","id":336074620,"node_id":"MDU6SXNzdWUzMzYwNzQ2MjA=","number":3555,"title":"Cannot add user with username same as host username","user":{"login":"Worthy7","id":4762399,"node_id":"MDQ6VXNlcjQ3NjIzOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/4762399?v=4","gravatar_id":"","url":"https://api.github.com/users/Worthy7","html_url":"https://github.com/Worthy7","followers_url":"https://api.github.com/users/Worthy7/followers","following_url":"https://api.github.com/users/Worthy7/following{/other_user}","gists_url":"https://api.github.com/users/Worthy7/gists{/gist_id}","starred_url":"https://api.github.com/users/Worthy7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Worthy7/subscriptions","organizations_url":"https://api.github.com/users/Worthy7/orgs","repos_url":"https://api.github.com/users/Worthy7/repos","events_url":"https://api.github.com/users/Worthy7/events{/privacy}","received_events_url":"https://api.github.com/users/Worthy7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-27T04:38:55Z","updated_at":"2018-06-28T03:08:41Z","closed_at":null,"author_association":"NONE","body":"Is this a bug or a feature?\r\nI have an admin (host user) who has the username \"99999\"\r\nWhilst logged into the admin account, I tried to create a user on one of the tenants, with the same username.\r\nI expected it to work, since the UserName is not a duplicate _within that tenant_ but I got an error : `'[Identity.Duplicate user name]'`\r\n\r\nMy code is like this:\r\n```\r\n                    using (CurrentUnitOfWork.SetTenantId(u.TenantId))\r\n                    {\r\n                        res = await _userManager.CreateAsync(u, input.password);\r\n                        CurrentUnitOfWork.SaveChanges();\r\n                        res.CheckErrors();\r\n                        user = _userManager.Find(input.UserName, input.password);\r\n                    }     }\r\n            catch (DbEntityValidationException E)\r\n            {\r\n                throw new UserFriendlyException(E.InnerException.Message) { };\r\n            }\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/comments/400896677","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3555#issuecomment-400896677","issue_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3555","id":400896677,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDg5NjY3Nw==","user":{"login":"Worthy7","id":4762399,"node_id":"MDQ6VXNlcjQ3NjIzOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/4762399?v=4","gravatar_id":"","url":"https://api.github.com/users/Worthy7","html_url":"https://github.com/Worthy7","followers_url":"https://api.github.com/users/Worthy7/followers","following_url":"https://api.github.com/users/Worthy7/following{/other_user}","gists_url":"https://api.github.com/users/Worthy7/gists{/gist_id}","starred_url":"https://api.github.com/users/Worthy7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Worthy7/subscriptions","organizations_url":"https://api.github.com/users/Worthy7/orgs","repos_url":"https://api.github.com/users/Worthy7/repos","events_url":"https://api.github.com/users/Worthy7/events{/privacy}","received_events_url":"https://api.github.com/users/Worthy7/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T03:08:41Z","updated_at":"2018-06-28T03:08:41Z","author_association":"NONE","body":"Actually no it's still broken. Even with the filter enabled."}}
{"actor":{"display_login":"Worthy7"}}