{"action":"created","issue":{"url":"https://api.github.com/repos/SharePoint/office365-cli/issues/38","repository_url":"https://api.github.com/repos/SharePoint/office365-cli","labels_url":"https://api.github.com/repos/SharePoint/office365-cli/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/SharePoint/office365-cli/issues/38/comments","events_url":"https://api.github.com/repos/SharePoint/office365-cli/issues/38/events","html_url":"https://github.com/SharePoint/office365-cli/issues/38","id":275620383,"number":38,"title":"Automatically switch between tenant admin and regular site","user":{"login":"waldekmastykarz","id":11164679,"avatar_url":"https://avatars2.githubusercontent.com/u/11164679?v=4","gravatar_id":"","url":"https://api.github.com/users/waldekmastykarz","html_url":"https://github.com/waldekmastykarz","followers_url":"https://api.github.com/users/waldekmastykarz/followers","following_url":"https://api.github.com/users/waldekmastykarz/following{/other_user}","gists_url":"https://api.github.com/users/waldekmastykarz/gists{/gist_id}","starred_url":"https://api.github.com/users/waldekmastykarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldekmastykarz/subscriptions","organizations_url":"https://api.github.com/users/waldekmastykarz/orgs","repos_url":"https://api.github.com/users/waldekmastykarz/repos","events_url":"https://api.github.com/users/waldekmastykarz/events{/privacy}","received_events_url":"https://api.github.com/users/waldekmastykarz/received_events","type":"User","site_admin":false},"labels":[{"id":718115096,"url":"https://api.github.com/repos/SharePoint/office365-cli/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-11-21T08:11:34Z","updated_at":"2017-12-16T20:12:53Z","closed_at":"2017-12-16T20:12:53Z","author_association":"COLLABORATOR","body":"Currently, commands that require connection to the tenant admin site (contoso-admin.sharepoint.com), check if the user connected to the tenant admin site using the `spo connect` site. If not, they display an error telling the user to explicitly connect to the tenant admin site before running the command. We could improve this experience by automatically getting the access token for an access token to the tenant admin site without bothering the user. Doing this is possible, because AAD issues multi-resource refresh tokens that can be used for obtaining access tokens to different resources in the same AAD.\r\n\r\nAny opinions @estruyf, @andrewconnell, @wictorwilen?"},"comment":{"url":"https://api.github.com/repos/SharePoint/office365-cli/issues/comments/352208180","html_url":"https://github.com/SharePoint/office365-cli/issues/38#issuecomment-352208180","issue_url":"https://api.github.com/repos/SharePoint/office365-cli/issues/38","id":352208180,"user":{"login":"waldekmastykarz","id":11164679,"avatar_url":"https://avatars2.githubusercontent.com/u/11164679?v=4","gravatar_id":"","url":"https://api.github.com/users/waldekmastykarz","html_url":"https://github.com/waldekmastykarz","followers_url":"https://api.github.com/users/waldekmastykarz/followers","following_url":"https://api.github.com/users/waldekmastykarz/following{/other_user}","gists_url":"https://api.github.com/users/waldekmastykarz/gists{/gist_id}","starred_url":"https://api.github.com/users/waldekmastykarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldekmastykarz/subscriptions","organizations_url":"https://api.github.com/users/waldekmastykarz/orgs","repos_url":"https://api.github.com/users/waldekmastykarz/repos","events_url":"https://api.github.com/users/waldekmastykarz/events{/privacy}","received_events_url":"https://api.github.com/users/waldekmastykarz/received_events","type":"User","site_admin":false},"created_at":"2017-12-16T20:12:53Z","updated_at":"2017-12-16T20:12:53Z","author_association":"COLLABORATOR","body":"At this moment we support automatically switching from tenant admin to regular sites but not the other way around. We use this approach in a few commands and seems to be working. Let's keep using it for now and revise in the future if necessary."}}
{"actor":{"display_login":"waldekmastykarz"}}