{"id":2482,"date":"2021-11-08T01:16:35","date_gmt":"2021-11-08T09:16:35","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=2482"},"modified":"2021-11-08T01:18:20","modified_gmt":"2021-11-08T09:18:20","slug":"authenticate-to-sharepoint-online","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/authenticate-to-sharepoint-online\/","title":{"rendered":"Authenticate to SharePoint Online"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Connect-SPOService <\/h2>\n\n\n\n<p>Connect to SharePoint Online using the Connect-SPOService cmdlet using the Credentials parameter will call the Authentication Form to enter username and password<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Connect-SPOService -url https:\/\/TenantName-admin.sharepoint.com -Credentials Get-Credentials<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2021\/11\/image-2.png\" alt=\"\" class=\"wp-image-2486\" width=\"250\" height=\"188\"\/><\/figure>\n\n\n\n<p>To connect using multifactor authentication only use the url parameter<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> Connect-SPOService -url https:\/\/TenantName-admin.sharepoint.com<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2021\/11\/image-1.png\" alt=\"\" class=\"wp-image-2485\" width=\"245\" height=\"456\"\/><\/figure>\n\n\n\n<p>If the error: Could not authenticate to SharePoint Online https:\/\/TenantName.sharepoint.com\/sites\/SiteName<br>using OAuth 2.0 appears MFA might not be enabled on Office365 Global Administrator Account<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Disconnect-SPOService<\/h2>\n\n\n\n<p>This will disconnect SharePoint online <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Connect-SPOService Connect to SharePoint Online using the Connect-SPOService cmdlet using the Credentials parameter will call the Authentication Form to enter username and password Connect-SPOService -url https:\/\/TenantName-admin.sharepoint.com -Credentials Get-Credentials To connect using multifactor authentication only use the url parameter Connect-SPOService -url https:\/\/TenantName-admin.sharepoint.com If the error: Could not authenticate to SharePoint Online https:\/\/TenantName.sharepoint.com\/sites\/SiteNameusing OAuth 2.0 appears MFA &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/authenticate-to-sharepoint-online\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Authenticate to SharePoint Online&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2482","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=2482"}],"version-history":[{"count":3,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2482\/revisions"}],"predecessor-version":[{"id":2489,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2482\/revisions\/2489"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=2482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}