{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/skype-web-sdk-samples/issues/1","repository_url":"https://api.github.com/repos/OfficeDev/skype-web-sdk-samples","labels_url":"https://api.github.com/repos/OfficeDev/skype-web-sdk-samples/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/skype-web-sdk-samples/issues/1/comments","events_url":"https://api.github.com/repos/OfficeDev/skype-web-sdk-samples/issues/1/events","html_url":"https://github.com/OfficeDev/skype-web-sdk-samples/issues/1","id":144612271,"number":1,"title":"SfB-Online: mePerson does not return info about logged user","user":{"login":"ybutkevych","id":10098526,"avatar_url":"https://avatars.githubusercontent.com/u/10098526?v=3","gravatar_id":"","url":"https://api.github.com/users/ybutkevych","html_url":"https://github.com/ybutkevych","followers_url":"https://api.github.com/users/ybutkevych/followers","following_url":"https://api.github.com/users/ybutkevych/following{/other_user}","gists_url":"https://api.github.com/users/ybutkevych/gists{/gist_id}","starred_url":"https://api.github.com/users/ybutkevych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybutkevych/subscriptions","organizations_url":"https://api.github.com/users/ybutkevych/orgs","repos_url":"https://api.github.com/users/ybutkevych/repos","events_url":"https://api.github.com/users/ybutkevych/events{/privacy}","received_events_url":"https://api.github.com/users/ybutkevych/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T14:36:12Z","updated_at":"2016-03-30T19:34:54Z","closed_at":null,"body":"Hi guys,\r\n\r\nI can login into Skype for Business Online. However, I cannot retrieve any info about the logged user (email, presence, photo, etc). Do I need to add some configuration to Azure AD or this functionality is not currently supported? \r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/OfficeDev/skype-web-sdk-samples/issues/comments/203599374","html_url":"https://github.com/OfficeDev/skype-web-sdk-samples/issues/1#issuecomment-203599374","issue_url":"https://api.github.com/repos/OfficeDev/skype-web-sdk-samples/issues/1","id":203599374,"user":{"login":"antonkh","id":17773180,"avatar_url":"https://avatars.githubusercontent.com/u/17773180?v=3","gravatar_id":"","url":"https://api.github.com/users/antonkh","html_url":"https://github.com/antonkh","followers_url":"https://api.github.com/users/antonkh/followers","following_url":"https://api.github.com/users/antonkh/following{/other_user}","gists_url":"https://api.github.com/users/antonkh/gists{/gist_id}","starred_url":"https://api.github.com/users/antonkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonkh/subscriptions","organizations_url":"https://api.github.com/users/antonkh/orgs","repos_url":"https://api.github.com/users/antonkh/repos","events_url":"https://api.github.com/users/antonkh/events{/privacy}","received_events_url":"https://api.github.com/users/antonkh/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T19:34:54Z","updated_at":"2016-03-30T19:34:54Z","body":"This might be due to UCWA not returning the `rel=me` resource (please check the response for `POST /applications` - it contains that `rel=me` resource with name, title and other contact details) and UCWA usually does that when the access token presented in the `Authorization` header doesn't contain the `User.ReadWrite` scope, which in turn happens when the scope isn't added in the AAD config. To check if my speculation is correct, please do the following:\r\n\r\n1. Check if the response for `POST /applications` has the `rel=me` resource.\r\n2. Check if the access token has the needed scopes. To do that extract the token from the `Authorization` header and decode it:\r\n\r\n```js\r\nt = \"ey....Yz\"; // this is your token\r\np = t.split(\".\"); // this gives an array of 3 elements\r\nb = atob(p[1]); // base64 decoding\r\nd = JSON.parse(b);\r\nd.scp; // this is the set of scopes\r\n```"}}