{"id":900,"date":"2023-08-25T18:37:48","date_gmt":"2023-08-25T10:37:48","guid":{"rendered":"https:\/\/www.ruianding.com\/blog\/?p=900"},"modified":"2025-03-21T17:46:25","modified_gmt":"2025-03-21T09:46:25","slug":"tricks-for-determining-the-tenant-id","status":"publish","type":"post","link":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/","title":{"rendered":"Tricks for Determining the Tenant ID from an AAD Domain"},"content":{"rendered":"\n<p>In my previous post <a href=\"https:\/\/www.ruianding.com\/blog\/useful-url-for-determining-the-domain-type\/\">Useful URL for Determining the Domain Type<\/a>, I introduced an API that facilitates the swift identification of the AAD domain type based on the provided AAD domain name. Additionally, there are instances where it becomes necessary to ascertain the precise tenant ID associated with a given domain.<\/p>\n\n\n\n<p>For this purpose, you can employ the following URL as a useful technique to promptly uncover the corresponding tenant ID.<\/p>\n\n\n\n<p><code>https:\/\/login.microsoftonline.com\/&lt;domainName&gt;\/v2.0\/.well-known\/openid-configuration<\/code><\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background has-small-font-size\">Substitute<strong> <\/strong><em><strong>&lt;domainName&gt;<\/strong> <\/em>with the domain name you wish to inquire about.<\/p>\n\n\n\n<p>As demonstrated below, the tenant ID is disclosed in the server response:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"402\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png\" alt=\"\" class=\"wp-image-905\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post Useful URL for Determining the Domain Type, I introduced an API that facilitates the swift identification of the AAD domain type based on the provided AAD domain name. Additionally, there are instances where it becomes necessary to ascertain the precise tenant ID associated with a given domain. For this purpose, you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[32,35,12],"tags":[45],"class_list":["post-900","post","type-post","status-publish","format-standard","hentry","category-aad-general","category-saas","category-troubleshooting","tag-saas"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tricks for Determining the Tenant ID from an AAD Domain - \u6781\u7b80IT\uff5cSimpleIT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tricks for Determining the Tenant ID from an AAD Domain - \u6781\u7b80IT\uff5cSimpleIT\" \/>\n<meta property=\"og:description\" content=\"In my previous post Useful URL for Determining the Domain Type, I introduced an API that facilitates the swift identification of the AAD domain type based on the provided AAD domain name. Additionally, there are instances where it becomes necessary to ascertain the precise tenant ID associated with a given domain. For this purpose, you [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6781\u7b80IT\uff5cSimpleIT\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-25T10:37:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-21T09:46:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"402\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ruian Ding\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ruian Ding\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/\"},\"author\":{\"name\":\"Ruian Ding\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"headline\":\"Tricks for Determining the Tenant ID from an AAD Domain\",\"datePublished\":\"2023-08-25T10:37:48+00:00\",\"dateModified\":\"2025-03-21T09:46:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/\"},\"wordCount\":106,\"publisher\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"image\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png\",\"keywords\":[\"SAAS\"],\"articleSection\":[\"AAD General\",\"SaaS\",\"Troubleshooting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/\",\"url\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/\",\"name\":\"Tricks for Determining the Tenant ID from an AAD Domain - \u6781\u7b80IT\uff5cSimpleIT\",\"isPartOf\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png\",\"datePublished\":\"2023-08-25T10:37:48+00:00\",\"dateModified\":\"2025-03-21T09:46:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#primaryimage\",\"url\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png\",\"contentUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png\",\"width\":1440,\"height\":402},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.ruianding.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tricks for Determining the Tenant ID from an AAD Domain\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#website\",\"url\":\"https:\/\/www.ruianding.com\/blog\/\",\"name\":\"Ruian's Tech Troubleshooting Toolbox\",\"description\":\"Debug the World.\",\"publisher\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"alternateName\":\"\u4e01\u777f\u5b89\u7684\u6280\u672f\u5206\u4eab\u535a\u5ba2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ruianding.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\",\"name\":\"Ruian Ding\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png\",\"contentUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png\",\"width\":284,\"height\":284,\"caption\":\"Ruian Ding\"},\"logo\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"I am currently a Support Specialist at NIO, focusing on cloud-related issues for NIO Power. Previously, at Microsoft Entra ID, I specialized in identity and access management (IAM), including device registration, Windows Hello for Business (WHfB), multi-factor authentication (MFA), and single sign-on (SSO). In addition to my core expertise, I have a strong foundation in Active Directory, Servers, Cloud Computing, Network Administration, and Front-end Web Development. This diverse technical skill set enables me to effectively handle a wide range of challenges in a fast-paced IT environment.\",\"sameAs\":[\"https:\/\/www.ruianding.com\"],\"url\":\"https:\/\/www.ruianding.com\/blog\/author\/ruiand\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tricks for Determining the Tenant ID from an AAD Domain - \u6781\u7b80IT\uff5cSimpleIT","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:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/","og_locale":"en_US","og_type":"article","og_title":"Tricks for Determining the Tenant ID from an AAD Domain - \u6781\u7b80IT\uff5cSimpleIT","og_description":"In my previous post Useful URL for Determining the Domain Type, I introduced an API that facilitates the swift identification of the AAD domain type based on the provided AAD domain name. Additionally, there are instances where it becomes necessary to ascertain the precise tenant ID associated with a given domain. For this purpose, you [&hellip;]","og_url":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/","og_site_name":"\u6781\u7b80IT\uff5cSimpleIT","article_published_time":"2023-08-25T10:37:48+00:00","article_modified_time":"2025-03-21T09:46:25+00:00","og_image":[{"width":1440,"height":402,"url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png","type":"image\/png"}],"author":"Ruian Ding","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ruian Ding","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#article","isPartOf":{"@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/"},"author":{"name":"Ruian Ding","@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"headline":"Tricks for Determining the Tenant ID from an AAD Domain","datePublished":"2023-08-25T10:37:48+00:00","dateModified":"2025-03-21T09:46:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/"},"wordCount":106,"publisher":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"image":{"@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png","keywords":["SAAS"],"articleSection":["AAD General","SaaS","Troubleshooting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/","url":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/","name":"Tricks for Determining the Tenant ID from an AAD Domain - \u6781\u7b80IT\uff5cSimpleIT","isPartOf":{"@id":"https:\/\/www.ruianding.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#primaryimage"},"image":{"@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png","datePublished":"2023-08-25T10:37:48+00:00","dateModified":"2025-03-21T09:46:25+00:00","breadcrumb":{"@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#primaryimage","url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png","contentUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/08\/image-51.png","width":1440,"height":402},{"@type":"BreadcrumbList","@id":"https:\/\/www.ruianding.com\/blog\/tricks-for-determining-the-tenant-id\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ruianding.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Tricks for Determining the Tenant ID from an AAD Domain"}]},{"@type":"WebSite","@id":"https:\/\/www.ruianding.com\/blog\/#website","url":"https:\/\/www.ruianding.com\/blog\/","name":"Ruian's Tech Troubleshooting Toolbox","description":"Debug the World.","publisher":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"alternateName":"\u4e01\u777f\u5b89\u7684\u6280\u672f\u5206\u4eab\u535a\u5ba2","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ruianding.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b","name":"Ruian Ding","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png","contentUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png","width":284,"height":284,"caption":"Ruian Ding"},"logo":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/"},"description":"I am currently a Support Specialist at NIO, focusing on cloud-related issues for NIO Power. Previously, at Microsoft Entra ID, I specialized in identity and access management (IAM), including device registration, Windows Hello for Business (WHfB), multi-factor authentication (MFA), and single sign-on (SSO). In addition to my core expertise, I have a strong foundation in Active Directory, Servers, Cloud Computing, Network Administration, and Front-end Web Development. This diverse technical skill set enables me to effectively handle a wide range of challenges in a fast-paced IT environment.","sameAs":["https:\/\/www.ruianding.com"],"url":"https:\/\/www.ruianding.com\/blog\/author\/ruiand\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/comments?post=900"}],"version-history":[{"count":5,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/900\/revisions"}],"predecessor-version":[{"id":2686,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/900\/revisions\/2686"}],"wp:attachment":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/media?parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/categories?post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/tags?post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}