{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/OfficeDocs-Enterprise/issues/16","repository_url":"https://api.github.com/repos/MicrosoftDocs/OfficeDocs-Enterprise","labels_url":"https://api.github.com/repos/MicrosoftDocs/OfficeDocs-Enterprise/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/OfficeDocs-Enterprise/issues/16/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/OfficeDocs-Enterprise/issues/16/events","html_url":"https://github.com/MicrosoftDocs/OfficeDocs-Enterprise/issues/16","id":305203794,"number":16,"title":"Error on Stepd 6 - AcquireToken\" with \"4\" argument(s)","user":{"login":"guptas-abhishek","id":35603214,"avatar_url":"https://avatars2.githubusercontent.com/u/35603214?v=4","gravatar_id":"","url":"https://api.github.com/users/guptas-abhishek","html_url":"https://github.com/guptas-abhishek","followers_url":"https://api.github.com/users/guptas-abhishek/followers","following_url":"https://api.github.com/users/guptas-abhishek/following{/other_user}","gists_url":"https://api.github.com/users/guptas-abhishek/gists{/gist_id}","starred_url":"https://api.github.com/users/guptas-abhishek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guptas-abhishek/subscriptions","organizations_url":"https://api.github.com/users/guptas-abhishek/orgs","repos_url":"https://api.github.com/users/guptas-abhishek/repos","events_url":"https://api.github.com/users/guptas-abhishek/events{/privacy}","received_events_url":"https://api.github.com/users/guptas-abhishek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-14T15:17:50Z","updated_at":"2018-03-14T15:27:49Z","closed_at":null,"author_association":"NONE","body":"Hi,  I am stuck in step no 6 \n\nExecuted the Import-Module (path)\\MSGraphTokenLifetimePolicy.psm1 and Import-ActiveDirectoryAuthenticationLibrary command which worked like a charm but when running the main script \"$saml2policyid = Get-PoliciesAssignedToServicePrincipal -servicePrincipalId $objectid | ?{$_.displayName -EQ \"TokenIssuancePolicy\"} | select objectId\", it gave me an error....\n\nIs there something more i need to do... Code output is below\n\nPS Z:\\cgas\\Abhi> Import-ActiveDirectoryAuthenticationLibrary\nActive Directory Authentication Library Nuget doesn't exist. Downloading now ..\n\nnuget.exe not found. Downloading from http://www.nuget.org/nuget.exe ...\nLoading ADAL Assemblies ...\nTrue\nPS Z:\\cgas\\Abhi> $saml2policyid = Get-PoliciesAssignedToServicePrincipal -servicePrincipalId $objectid | ?{$_.displayName -EQ \"TokenIssuancePolicy\"} | select objectId\nGetPoliciesAssignedToEntityUrl: Using graph endpoint: https://graph.windows.net\nentity: servicePrincipals entityId: *******\nException calling \"AcquireToken\" with \"4\" argument(s): \"Unable to cast object\nof type\n'Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.InteractiveWebUI' to\ntype 'Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.IWebUI'.\"\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\MSGraphTokenLifetimePolicy\\MSGrap\nhTokenLifetimePolicy.psm1:52 char:3\n\n$Global:authenticationResult =\n$authContext.AcquireToken($resourceAppIdURI, $c ...\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: f079fa08-284c-3f14-be4a-1f32d5b0e7b9\n* Version Independent ID: 707cbeee-d311-d430-6119-e9ae8b8aeae5\n* Content: [Using Azure AD for SharePoint Server Authentication | Microsoft Docs](https://docs.microsoft.com/en-us/office365/enterprise/using-azure-ad-for-sharepoint-server-authentication)\n* Content Source: [Enterprise/using-azure-ad-for-sharepoint-server-authentication.md](https://github.com/MicrosoftDocs/OfficeDocs-Enterprise/blob/live/Enterprise/using-azure-ad-for-sharepoint-server-authentication.md)\n* Service: **o365-solutions**\n* GitHub Login: @MSFTTracyP\n* Microsoft Alias: **tracyp**"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/OfficeDocs-Enterprise/issues/comments/373062559","html_url":"https://github.com/MicrosoftDocs/OfficeDocs-Enterprise/issues/16#issuecomment-373062559","issue_url":"https://api.github.com/repos/MicrosoftDocs/OfficeDocs-Enterprise/issues/16","id":373062559,"user":{"login":"kaevans","id":7107098,"avatar_url":"https://avatars2.githubusercontent.com/u/7107098?v=4","gravatar_id":"","url":"https://api.github.com/users/kaevans","html_url":"https://github.com/kaevans","followers_url":"https://api.github.com/users/kaevans/followers","following_url":"https://api.github.com/users/kaevans/following{/other_user}","gists_url":"https://api.github.com/users/kaevans/gists{/gist_id}","starred_url":"https://api.github.com/users/kaevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaevans/subscriptions","organizations_url":"https://api.github.com/users/kaevans/orgs","repos_url":"https://api.github.com/users/kaevans/repos","events_url":"https://api.github.com/users/kaevans/events{/privacy}","received_events_url":"https://api.github.com/users/kaevans/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T15:27:49Z","updated_at":"2018-03-14T15:27:49Z","author_association":"CONTRIBUTOR","body":"I created a new pull request (https://github.com/MicrosoftDocs/OfficeDocs-Enterprise/pull/15) with more explicit directions. \r\n\r\n1. Open an elevated command prompt \r\n2. Change directory to the folder containing the Initialize.ps1 and MSGraphTokenLifetimePolicy.psm1 files.\r\n3. Execute the command `Import-Module Initialize.ps1`\r\n\r\nHope this helps."}}
{"actor":{"display_login":"kaevans"}}