> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

---
id: e2181f7a-158f-4503-bc43-c3357c62eda4
---

# Microsoft Sign-In for Memberships

> Learn more about setting up memberships for private content to allow visitors to sign in with their Microsoft account.  

export const SupportedProducts = ({marketing, sales, service, cms, data, commerce, marketingLevel, salesLevel, serviceLevel, cmsLevel, dataLevel, commerceLevel}) => {
  const translations = {
    description: "Requires one of the following products or higher.",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub",
      data: "Data Hub",
      commerce: "Commerce Hub"
    },
    tiers: {
      free: "Free",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }, {
    name: data ? translations.productNames.data : '',
    level: translateTier(dataLevel),
    icon: "https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/subscription_key_icons/operations_icon.svg",
    alt: "Data Hub"
  }, {
    name: commerce ? translations.productNames.commerce : '',
    level: translateTier(commerceLevel),
    icon: "https://developers.hubspot.com/hubfs/Knowledge_Base/subscription_key_icons/commerce_icon.svg",
    alt: "Commerce Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<Accordion title="Supported products" defaultOpen="true" icon="cubes">
  <SupportedProducts cms={true} cmsLevel="professional" />
</Accordion>

You can allow members to access your private content using their Microsoft account by configuring an application in Microsoft Azure.

## Create an application

In your Microsoft Azure account, you can create an application to connect to HubSpot.

* In your Microsoft Azure account, open [Microsoft Entry ID (Azure Activity Directory)](https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview).
* In the top left, click the **Add** dropdown menu and select **App registration**.

<Frame>
  <img src="https://www.hubspot.com/hubfs/Knowledge_Base_2021/add-app-registration-in-azure.png" alt="add-app-registration-in-azure" />
</Frame>

* In the *Name* field, enter an **internal name** for your application.
* In the *Supported account types* section, select the **account types** that will be able to view your private content using a Microsoft sign-in. The *Accounts in any organizational directory...and personal Microsoft accounts* option is recommended to support the widest variety of accounts.
* In the *Redirect URI* section, you can provide a URI for the authentication response. It's recommended to return to this step later.
* Click **Register** to complete application creation.

## Set up application information

* In your Microsoft Azure account, open your newly created application.
* In the left sidebar menu, click to expand **Manage**, then select **Authentication**.

<Frame>
  <img src="https://www.hubspot.com/hubfs/Knowledge_Base_2021/left-sidebar-menu-in-azure-authentication.png" alt="left-sidebar-menu-in-azure-authentication" />
</Frame>

* In the *Platform considerations* section, click **+** **Add a platform**.
* In the *Web applications* section, select **Web**.

<Frame>
  <img src="https://www.hubspot.com/hubfs/Knowledge_Base_2021/web-applications-in-azure.png" alt="web-applications-in-azure" />
</Frame>

* In a separate tab, locate your credentials in HubSpot:
  * In your HubSpot account, click the **settings icon** in the top navigation bar.
  * In the left sidebar menu, navigate to **Content > Private Content**.
  * In the *Sign-in Options* section, click **Set up social sign-on**.
  * In the right panel, click the **Microsoft** tab.
  * Click **Copy** next to the redirect URI.
* In Microsoft Azure, paste the redirect URI.
* Repeat the process for each separate domain you have connected to HubSpot. To change the domain you are setting up, click the **domain** dropdown menu above the redirect URI field and select a **domain**.

<Frame>
  <img src="https://www.hubspot.com/hubfs/Knowledge_Base_2021/select-new-domain-for-social-sign-in-in-hubspot.png" alt="select-new-domain-for-social-sign-in-in-hubspot" />
</Frame>

* In Microsoft Azure, click **Overview** in the left sidebar menu.
* Click to expand the **Essentials** section.
* Copy the Application (client) ID, then paste the ID into the *Client ID* field in HubSpot.
* Click **Add new certificate or** **secret**.

<Frame>
  <img src="https://www.hubspot.com/hubfs/Knowledge_Base_2021/add-a-certificate-or-a-secret.png" alt="add-a-certificate-or-a-secret" />
</Frame>

* Click **+** **New client secret**.
* Edit your client secret description and expiration settings.
* Copy the client secret, then paste the value into the *Client Secret* field in HubSpot.
* In HubSpot, click **Verify**.

<Frame>
  <img src="https://www.hubspot.com/hubfs/Knowledge_Base_2021/set-up-social-sign-on-for-microsoft.png" alt="set-up-social-sign-on-for-microsoft" />
</Frame>
