{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/121","repository_url":"https://api.github.com/repos/Microsoft/o365-moodle","labels_url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/121/comments","events_url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/121/events","html_url":"https://github.com/Microsoft/o365-moodle/issues/121","id":154167328,"number":121,"title":"AAD account is getting linked to moodle account even if it is already present in moodle.","user":{"login":"sushantgawali","id":1239267,"avatar_url":"https://avatars.githubusercontent.com/u/1239267?v=3","gravatar_id":"","url":"https://api.github.com/users/sushantgawali","html_url":"https://github.com/sushantgawali","followers_url":"https://api.github.com/users/sushantgawali/followers","following_url":"https://api.github.com/users/sushantgawali/following{/other_user}","gists_url":"https://api.github.com/users/sushantgawali/gists{/gist_id}","starred_url":"https://api.github.com/users/sushantgawali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushantgawali/subscriptions","organizations_url":"https://api.github.com/users/sushantgawali/orgs","repos_url":"https://api.github.com/users/sushantgawali/repos","events_url":"https://api.github.com/users/sushantgawali/events{/privacy}","received_events_url":"https://api.github.com/users/sushantgawali/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/o365-moodle/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Microsoft/o365-moodle/milestones/7","html_url":"https://github.com/Microsoft/o365-moodle/milestones/Release%2020160523","labels_url":"https://api.github.com/repos/Microsoft/o365-moodle/milestones/7/labels","id":1748181,"number":7,"title":"Release 20160523","description":"","creator":{"login":"jamesmcq","id":856093,"avatar_url":"https://avatars.githubusercontent.com/u/856093?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmcq","html_url":"https://github.com/jamesmcq","followers_url":"https://api.github.com/users/jamesmcq/followers","following_url":"https://api.github.com/users/jamesmcq/following{/other_user}","gists_url":"https://api.github.com/users/jamesmcq/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmcq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmcq/subscriptions","organizations_url":"https://api.github.com/users/jamesmcq/orgs","repos_url":"https://api.github.com/users/jamesmcq/repos","events_url":"https://api.github.com/users/jamesmcq/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmcq/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":7,"state":"open","created_at":"2016-05-04T17:26:53Z","updated_at":"2016-05-11T06:32:14Z","due_on":"2016-05-23T04:00:00Z","closed_at":null},"comments":3,"created_at":"2016-05-11T06:11:45Z","updated_at":"2016-05-11T06:47:40Z","closed_at":null,"body":"If we run cron job and sync all AAD users to moodle and then login with existing moodle account and try to link an AAD account which is already synced, then it is getting linked to moodle account, instead it should say that 'moodle account for this AAD account already exist'"},"comment":{"url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/comments/218376160","html_url":"https://github.com/Microsoft/o365-moodle/issues/121#issuecomment-218376160","issue_url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/121","id":218376160,"user":{"login":"jamesmcq","id":856093,"avatar_url":"https://avatars.githubusercontent.com/u/856093?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmcq","html_url":"https://github.com/jamesmcq","followers_url":"https://api.github.com/users/jamesmcq/followers","following_url":"https://api.github.com/users/jamesmcq/following{/other_user}","gists_url":"https://api.github.com/users/jamesmcq/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmcq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmcq/subscriptions","organizations_url":"https://api.github.com/users/jamesmcq/orgs","repos_url":"https://api.github.com/users/jamesmcq/repos","events_url":"https://api.github.com/users/jamesmcq/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmcq/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T06:47:40Z","updated_at":"2016-05-11T06:47:40Z","body":"Gotcha - thanks for the report!"}}