{"id":88650,"date":"2023-06-05T13:09:40","date_gmt":"2023-06-05T17:09:40","guid":{"rendered":"https:\/\/jumpcloud.com\/?post_type=support&p=88650"},"modified":"2024-06-25T15:32:09","modified_gmt":"2024-06-25T19:32:09","slug":"disable-m365-federation-with-powershell","status":"publish","type":"support","link":"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell","title":{"rendered":"Disable Microsoft 365 \/ Entra ID Federation with PowerShell"},"content":{"rendered":"\n

Before you set up Single Sign On (SSO) with JumpCloud, you\u2019ll want to verify that Federated SignOn is disabled in your organization for the domain you\u2019re planning to federate with JumpCloud SSO. This ensures that any previous SSO configurations are disabled and allows the syncing of users to be done before activating the Microsoft 365 SSO application in the JumpCloud Admin Portal.

These steps are also applicable if you want to disable JumpCloud SSO for Microsoft 365 \/ Entra ID.<\/p>\n\n\n\n

To read more on updating Federation of Domains, see Microsoft’s Update or repair the settings of a federated domain in Microsoft 365, Azure, or Intune<\/a>.<\/p>\n\n\n\n

Setting a domain from federated to managed<\/strong><\/h2>\n\n\n\n
    \n
  1. Install the Microsoft Graph PowerShell<\/a>.<\/li>\n\n\n\n
  2. Set the Execution Policy to Remote Signed:<\/li>\n<\/ol>\n\n\n\n
    \n

    Set-ExecutionPolicy RemoteSigned<\/kbd><\/p>\n<\/div><\/div>\n\n\n\n

      \n
    1. Connect to your Microsoft 365 \/ Entra ID tenant:<\/li>\n<\/ol>\n\n\n\n

      <\/p><\/div>

      Tip:<\/strong> \n

      If you need your Tenant ID, see Find your Microsoft 365 tenant ID<\/a>.<\/p>\n <\/div><\/div><\/div><\/div>\n\n\n\n

      \n

      Connect-MGGraph -Scopes “Domain.ReadWrite.All”, “Directory.AccessAsUser.All”, “Organization.ReadWrite.All”, “Directory.ReadWrite.All”<\/kbd><\/p>\n<\/div><\/div>\n\n\n\n

        \n
      1. Enter your Office 365 Global Administrator Credentials.<\/li>\n\n\n\n
      2. Consent and Accept the requested scopes.<\/li>\n\n\n\n
      3. Verify the domain is federated:<\/li>\n<\/ol>\n\n\n\n
        \n

        Get-MgDomain -DomainId \u201c<YourO365Domain.com>\u201d<\/kbd><\/p>\n<\/div><\/div>\n\n\n\n

          \n
        1. Change Federation Authentication from federated<\/strong> to managed<\/strong>:<\/li>\n<\/ol>\n\n\n\n
          \n

          Update-MgDomain \u2013DomainId \u201c<YourO365Domain.com>\u201d -AuthenticationType Managed<\/kbd><\/p>\n<\/div><\/div>\n\n\n\n

            \n
          1. To check Federation status:<\/li>\n<\/ol>\n\n\n\n
            \n

            Get-MgDomain -DomainId \u201c<YourO365Domain.com>\u201d<\/kbd><\/p>\n<\/div><\/div>\n\n\n\n

              \n
            1. Disconnect Microsoft Graph:<\/li>\n<\/ol>\n\n\n\n
              \n

              Disconnect-MGGraph<\/kbd><\/p>\n<\/div><\/div>\n\n\n\n

              Authentication Status is now listed as managed<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"

              Before you set up Single Sign On (SSO) with JumpCloud, you\u2019ll want to verify that Federated SignOn is disabled in […]<\/p>\n","protected":false},"author":206,"featured_media":0,"template":"","meta":{"_acf_changed":false,"_oasis_is_in_workflow":0,"_oasis_original":0,"_oasis_task_priority":"","inline_featured_image":false,"footnotes":""},"support_category":[2855,2954,2998],"support_tag":[],"coauthors":[2842],"acf":[],"yoast_head":"\nDisable Microsoft 365 \/ Entra ID Federation with PowerShell - JumpCloud<\/title>\n<meta name=\"description\" content=\"Learn how to disable the M365 federation with a powershell script.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Disable Microsoft 365 \/ Entra ID Federation with PowerShell\" \/>\n<meta property=\"og:description\" content=\"Learn how to disable the M365 federation with a powershell script.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell\" \/>\n<meta property=\"og:site_name\" content=\"JumpCloud\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-25T19:32:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/07\/202405-MISC-JumpCloudHelpCenter-SiteDisplay-min-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"890\" \/>\n\t<meta property=\"og:image:height\" content=\"525\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n\t<meta name=\"twitter:label2\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data2\" content=\"pamkellman\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell\",\"url\":\"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell\",\"name\":\"Disable Microsoft 365 \/ Entra ID Federation with PowerShell - JumpCloud\",\"isPartOf\":{\"@id\":\"https:\/\/jumpcloud.com\/#website\"},\"datePublished\":\"2023-06-05T17:09:40+00:00\",\"dateModified\":\"2024-06-25T19:32:09+00:00\",\"description\":\"Learn how to disable the M365 federation with a powershell script.\",\"breadcrumb\":{\"@id\":\"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jumpcloud.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Support\",\"item\":\"https:\/\/jumpcloud.com\/support\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Disable Microsoft 365 \/ Entra ID Federation with PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jumpcloud.com\/#website\",\"url\":\"https:\/\/jumpcloud.com\/\",\"name\":\"JumpCloud\",\"description\":\"Daily insights on directory services, IAM, LDAP, identity security, SSO, system management (Mac, Windows, Linux), networking, and the cloud.\",\"publisher\":{\"@id\":\"https:\/\/jumpcloud.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jumpcloud.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jumpcloud.com\/#organization\",\"name\":\"JumpCloud\",\"url\":\"https:\/\/jumpcloud.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png\",\"contentUrl\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png\",\"width\":598,\"height\":101,\"caption\":\"JumpCloud\"},\"image\":{\"@id\":\"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Disable Microsoft 365 \/ Entra ID Federation with PowerShell - JumpCloud","description":"Learn how to disable the M365 federation with a powershell script.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell","og_locale":"en_US","og_type":"article","og_title":"Disable Microsoft 365 \/ Entra ID Federation with PowerShell","og_description":"Learn how to disable the M365 federation with a powershell script.","og_url":"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell","og_site_name":"JumpCloud","article_modified_time":"2024-06-25T19:32:09+00:00","og_image":[{"width":890,"height":525,"url":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/07\/202405-MISC-JumpCloudHelpCenter-SiteDisplay-min-2.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute","Written by":"pamkellman"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell","url":"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell","name":"Disable Microsoft 365 \/ Entra ID Federation with PowerShell - JumpCloud","isPartOf":{"@id":"https:\/\/jumpcloud.com\/#website"},"datePublished":"2023-06-05T17:09:40+00:00","dateModified":"2024-06-25T19:32:09+00:00","description":"Learn how to disable the M365 federation with a powershell script.","breadcrumb":{"@id":"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jumpcloud.com\/support\/disable-m365-federation-with-powershell#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jumpcloud.com\/"},{"@type":"ListItem","position":2,"name":"Support","item":"https:\/\/jumpcloud.com\/support"},{"@type":"ListItem","position":3,"name":"Disable Microsoft 365 \/ Entra ID Federation with PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/jumpcloud.com\/#website","url":"https:\/\/jumpcloud.com\/","name":"JumpCloud","description":"Daily insights on directory services, IAM, LDAP, identity security, SSO, system management (Mac, Windows, Linux), networking, and the cloud.","publisher":{"@id":"https:\/\/jumpcloud.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jumpcloud.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jumpcloud.com\/#organization","name":"JumpCloud","url":"https:\/\/jumpcloud.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/","url":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png","contentUrl":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png","width":598,"height":101,"caption":"JumpCloud"},"image":{"@id":"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support\/88650"}],"collection":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/types\/support"}],"author":[{"embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/users\/206"}],"version-history":[{"count":3,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support\/88650\/revisions"}],"predecessor-version":[{"id":111993,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support\/88650\/revisions\/111993"}],"wp:attachment":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/media?parent=88650"}],"wp:term":[{"taxonomy":"support_category","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support_category?post=88650"},{"taxonomy":"support_tag","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support_tag?post=88650"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/coauthors?post=88650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}