Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
Redmond desk8 min

Tenant ID in OneDrive [Find Your Microsoft 365 Identifier]

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When a tool, script, or integration asks for your Tenant ID from OneDrive, it usually means the Microsoft Entra tenant GUID behind your Microsoft 365 account. It’s the identifier many APIs (including Microsoft Graph) need to correctly target your organization.

This guide walks you through several dependable ways to find that Tenant ID in OneDrive, whether you’re an admin, a developer, or an end user with limited access. You’ll get exact navigation paths and copy-ready commands.

As an Amazon Associate I earn from qualifying purchases.

What Tenant ID Means for OneDrive

OneDrive for Business is hosted by your organization’s Microsoft 365 tenant. The Tenant ID is a globally unique identifier for that tenant, represented as a GUID (example format: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Depending on the context, the same identifier is referenced as:

  • Tenant ID (most common)
  • Directory (tenant) ID
  • Microsoft 365 identifier (what many integration forms label it)

APIs and configuration screens use it to ensure your app connects to the correct Azure/Entra directory.

Prerequisites and What You Need

You’ll usually need one of these:

  • Admin access to Microsoft Entra ID (recommended), or access to Microsoft 365 admin center settings.
  • A working PowerShell environment with the right modules, if you prefer command-line methods.
  • Either a developer account with Graph access, or a way to run Graph requests with a token.

If you’re not an admin, you can still often find the tenant’s identity indirectly—but some methods are intentionally restricted.

Method 1: Find Tenant ID in Microsoft Entra admin center

This is the most direct way to get the canonical Tenant ID for your Microsoft 365 tenant.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Sign in to Microsoft Entra admin center as a tenant admin.
  2. From the left menu, choose Microsoft Entra ID.
  3. Open Overview.
  4. Locate the Tenant ID value. It’s typically shown alongside tenant details.
  5. Copy the GUID.

If your UI doesn’t show a “Tenant ID” label on the Overview page, use the tenant properties page and look for the directory identifier (often surfaced as Tenant ID or Directory ID).

Method 2: Find Tenant ID in Microsoft 365 admin center

Some tenants surface directory identifiers through the Microsoft 365 admin experience, though Entra admin center is usually more reliable.

  1. Go to Microsoft 365 admin center.
  2. Sign in with an account that has admin privileges for your organization.
  3. Navigate to Settings > Org settings (or a similar organization settings screen).
  4. Look for fields related to identity, directory, or tenant information.
  5. Copy the GUID if it’s displayed.

If you don’t find a GUID directly in Microsoft 365 admin center, that’s not unusual—switch to Method 1 (Entra admin center) or Method 3/4.

Method 3: Use PowerShell to Read Tenant ID

If you can run PowerShell, you can pull the tenant GUID from the connected session. This often works even when the UI is hard to find.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

PowerShell steps (interactive sign-in)

Use the Microsoft Graph PowerShell module or AzureAD/legacy modules depending on what your environment supports. Graph is the current direction.

  1. Open PowerShell 7 or Windows PowerShell as an admin (if needed).
  2. Install the Microsoft Graph module (run once):

Install-Module Microsoft.Graph -Scope CurrentUser

  1. Connect and sign in:

Connect-MgGraph -Scopes "Directory.Read.All"

  1. Retrieve the tenant ID. One reliable approach is to read the tenant from the current context and confirm with an organization call:

$org = Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/organization?`$top=1"

Then inspect the response for the directory/tenant identifier fields. Depending on response shape, you may see:

  • id (GUID) for the organization
  • Or directory identity fields inside the returned object

If the above requires adjustment for your tenant or permissions, Method 4 (direct Graph call) is usually more predictable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If Connect fails: what to try

  • Verify you can sign in to Microsoft accounts in a browser first.
  • Confirm you have network access to graph.microsoft.com.
  • If you get consent/permission errors, try removing scopes and using a smaller request—or use a user with sufficient rights to read directory data.

Method 4: Use Microsoft Graph to Retrieve Tenant ID

Graph can return organization details that include the tenant/directory identifier. This is especially useful when you’re building an integration and want deterministic values.

Direct Graph request to /organization

You’ll need an access token with permissions that allow reading organization data (commonly Organization.Read.All or Directory.Read.All depending on the flow).

  1. Get an access token using your chosen OAuth flow (app-only or delegated).
  2. Call the endpoint:

GET https://graph.microsoft.com/v1.0/organization?$top=1

  1. Look for the returned organization object’s identifier. In most tenant configurations, the organization object includes an id field containing the directory/tenant GUID.

Example response fields often include id, displayName, and other organization properties. Copy the GUID from id.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick verification: map the organization to your signed-in user

If you also have User.Read or similar scopes, you can call /me and compare the tenant context. While /me won’t always expose the Tenant ID directly, it helps confirm you’re authenticated against the tenant you think you are.

Method 5: Get Tenant Domain from OneDrive, Then Resolve to Tenant ID

If you can’t access Entra admin center, you can still often identify the tenant domain from your OneDrive sign-in context. Then you can resolve it to a Tenant ID using tools or directory lookup.

Find tenant domain from the OneDrive sign-in experience

  1. Go to your OneDrive sign-in page (commonly https://www.microsoft.com/microsoft-365 then open OneDrive), and sign in in your browser.
  2. Look at the address bar during the redirect to login. You’ll typically see a Microsoft login endpoint that includes tenant hints (for example, a domain hint such as contoso.com).
  3. Copy the tenant domain (the part after the @ in your email is often the same, but not always—some tenants use custom domains or aliases).

Once you have the tenant domain (e.g., contoso.com), you can resolve Tenant ID via Entra lookup (admin-only UI) or via Graph if your credentials have enough permissions. Without those permissions, resolution may not be possible.

Common Mistakes and Gotchas

These are the issues that most frequently cause “wrong tenant ID” errors.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Copying a Subscription ID or Azure resource ID instead of the directory/tenant GUID. Tenant ID is specific to the Entra directory.
  • Mixing consumer vs. business accounts. A personal OneDrive associated with a Microsoft account may not map to the same Microsoft 365 identifier you’re trying to configure.
  • Confusing Tenant Domain with Tenant ID. A domain like contoso.com is not the GUID; it’s only a hint.
  • Using the wrong tenant in multi-tenant orgs. If you have access to multiple directories, ensure the value you copy matches the one you’re actually using in OneDrive.
  • Stale cached session in browsers or SSO flows. If your account switches tenants unexpectedly, log out of all Microsoft sessions and sign in again.

Troubleshooting When You Can’t See the Tenant ID

If Method 1 (Entra admin center) doesn’t show the Tenant ID, or you don’t have access, use this decision path.

Case A: You’re not an admin

  • Try Method 5 only to get the tenant domain hint. Domain hints aren’t always enough for integration forms that require a GUID.
  • Ask a tenant admin to provide the Tenant ID from Entra admin center.
  • If you’re building an app, use Graph with your delegated permissions to fetch organization details (Method 4). If permissions are insufficient, you’ll need admin consent.

Case B: You’re an admin, but the UI won’t show it

  • Confirm you’re in the correct directory. In Entra, switching tenants is common if you administer multiple organizations.
  • Use Method 3 or Method 4 instead of relying on a UI label.
  • Try a different browser (Chrome/Edge are usually fastest with Microsoft admin portals).

Case C: Graph returns an empty or unexpected result

  • Check scopes/permissions: Organization.Read.All or Directory.Read.All are common needs.
  • Confirm the access token is issued for the tenant you want.
  • Try the request with a top value of 1 and inspect the exact JSON payload.

Case D: Integration still says Tenant ID is invalid

  • Re-copy the GUID carefully (avoid invisible characters). Paste into a GUID validator if available.
  • Ensure you’re using the Entra tenant ID, not a related identifier like tenant domain or an Azure resource GUID.
  • Confirm whether the tool expects the tenant_id for OAuth configuration or the directory ID for a Graph endpoint. Most Microsoft tools use the same value, but forms sometimes label it differently.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Comparisons: Tenant ID vs Tenant Domain vs Subscription ID

Value Example Where it’s used
Tenant ID (Directory ID) aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee Microsoft Entra directory targeting, OAuth configuration, some Graph flows
Tenant Domain contoso.com Login hints, branding, routing user sign-in to the right directory
Subscription ID 12345678-1234-1234-1234-123456789abc Azure resource billing and resource ownership (not the same as Entra tenant)

If your integration claims the Tenant ID is invalid, it’s usually because one of these values was mixed up.

FAQs

Is the Tenant ID I need for OneDrive the same as my Entra tenant ID?

Yes. OneDrive for Business lives in your organization’s Microsoft Entra directory. The Tenant ID is the directory/tenant GUID used across Microsoft services.

Where do I find Tenant ID for a shared mailbox or a user’s OneDrive?

The Tenant ID is tenant-wide, not user-specific. So you find it once from your organization’s Entra directory and reuse it for all users in that tenant.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

I only have access to OneDrive as a regular user. Can I still get the Tenant ID?

Sometimes you can via Graph if your permissions allow it, but in many cases you’ll need an admin to provide the Tenant ID from Entra admin center. Tenant ID is intentionally protected because it’s used for authentication targeting.

Why does my login redirect show a different domain than my email?

Organizations can use custom domains, aliases, or multiple verified domains. Tenant ID is still the GUID for the directory; the domain is just one of several routing hints during sign-in.

Can I safely share the Tenant ID with a vendor?

In general, Tenant ID alone is not the same as credentials. However, vendors may use it to complete OAuth configuration. Use your company’s standard vendor security process and prefer sharing only the value requested.

Bottom Line

If you have admin access, the fastest and most accurate path is Microsoft Entra admin center to copy the Tenant ID GUID. If you don’t, Graph or PowerShell may still work—otherwise you’ll need an admin to provide the identifier.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Once you have the correct Tenant ID, integrations that ask for a Microsoft 365 identifier for OneDrive should stop rejecting the configuration and start authenticating against the right directory.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.