{"action":"created","issue":{"url":"https://api.github.com/repos/microsoftgraph/powershell-intune-samples/issues/10","repository_url":"https://api.github.com/repos/microsoftgraph/powershell-intune-samples","labels_url":"https://api.github.com/repos/microsoftgraph/powershell-intune-samples/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/microsoftgraph/powershell-intune-samples/issues/10/comments","events_url":"https://api.github.com/repos/microsoftgraph/powershell-intune-samples/issues/10/events","html_url":"https://github.com/microsoftgraph/powershell-intune-samples/issues/10","id":254112264,"number":10,"title":"No unattended samples","user":{"login":"clickbangdead","id":31488592,"avatar_url":"https://avatars0.githubusercontent.com/u/31488592?v=4","gravatar_id":"","url":"https://api.github.com/users/clickbangdead","html_url":"https://github.com/clickbangdead","followers_url":"https://api.github.com/users/clickbangdead/followers","following_url":"https://api.github.com/users/clickbangdead/following{/other_user}","gists_url":"https://api.github.com/users/clickbangdead/gists{/gist_id}","starred_url":"https://api.github.com/users/clickbangdead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clickbangdead/subscriptions","organizations_url":"https://api.github.com/users/clickbangdead/orgs","repos_url":"https://api.github.com/users/clickbangdead/repos","events_url":"https://api.github.com/users/clickbangdead/events{/privacy}","received_events_url":"https://api.github.com/users/clickbangdead/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-08-30T19:39:29Z","updated_at":"2017-10-03T15:31:20Z","closed_at":null,"author_association":"NONE","body":"All these samples are for manual execution, when can we see samples suitable for automation? I've yet to find a good way to setup a script to run as a scheduled task or SCORCH process because the authentication requirements are onerous (i.e., requiring typing into a authorization web form, or doing admin consent again through a webform instead of just pre-provisioning permissions to service accounts). Are we likely to see good documentation related to this anytime soon?"},"comment":{"url":"https://api.github.com/repos/microsoftgraph/powershell-intune-samples/issues/comments/333879981","html_url":"https://github.com/microsoftgraph/powershell-intune-samples/issues/10#issuecomment-333879981","issue_url":"https://api.github.com/repos/microsoftgraph/powershell-intune-samples/issues/10","id":333879981,"user":{"login":"clickbangdead","id":31488592,"avatar_url":"https://avatars0.githubusercontent.com/u/31488592?v=4","gravatar_id":"","url":"https://api.github.com/users/clickbangdead","html_url":"https://github.com/clickbangdead","followers_url":"https://api.github.com/users/clickbangdead/followers","following_url":"https://api.github.com/users/clickbangdead/following{/other_user}","gists_url":"https://api.github.com/users/clickbangdead/gists{/gist_id}","starred_url":"https://api.github.com/users/clickbangdead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clickbangdead/subscriptions","organizations_url":"https://api.github.com/users/clickbangdead/orgs","repos_url":"https://api.github.com/users/clickbangdead/repos","events_url":"https://api.github.com/users/clickbangdead/events{/privacy}","received_events_url":"https://api.github.com/users/clickbangdead/received_events","type":"User","site_admin":false},"created_at":"2017-10-03T15:31:20Z","updated_at":"2017-10-03T15:31:20Z","author_association":"NONE","body":"So, hate bringing this up again, but do we have a solution for unattended script execution? Still need a way to run reports against Intune Graph in an automated, unattended way, but EVERYTHING I've seen or tried has required admin consent at some point, which means a GUI, which precludes running in a scheduled task or SCORCH. There seems to be no way to grant the Graph permissions to a service account that I can find. The only way I've even gotten my service account (which is both licensed and IN the Intune Admin role) to ever get access was to admin consent through the GUI using my global admin credentials. And that consent never stuck around, so I had to keep doing it. I just need to be able to pull live data in a scheduled, reliable way with no user interaction."}}
{"actor":{"display_login":"clickbangdead"}}