Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsWhen 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).
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →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.
- Sign in to Microsoft Entra admin center as a tenant admin.
- From the left menu, choose Microsoft Entra ID.
- Open Overview.
- Locate the Tenant ID value. It’s typically shown alongside tenant details.
- 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.
Rank #2
- Go to Microsoft 365 admin center.
- Sign in with an account that has admin privileges for your organization.
- Navigate to Settings > Org settings (or a similar organization settings screen).
- Look for fields related to identity, directory, or tenant information.
- 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.
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.
- Open PowerShell 7 or Windows PowerShell as an admin (if needed).
- Install the Microsoft Graph module (run once):
Install-Module Microsoft.Graph -Scope CurrentUser
- Connect and sign in:
Connect-MgGraph -Scopes "Directory.Read.All"
- 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:
Rank #3
- 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.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →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).
- Get an access token using your chosen OAuth flow (app-only or delegated).
- Call the endpoint:
GET https://graph.microsoft.com/v1.0/organization?$top=1
- Look for the returned organization object’s identifier. In most tenant configurations, the organization object includes an
idfield 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.
Rank #4
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
- Go to your OneDrive sign-in page (commonly https://www.microsoft.com/microsoft-365 then open OneDrive), and sign in in your browser.
- 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). - 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.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstall- 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.comis 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.
Best Value
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.AllorDirectory.Read.Allare 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_idfor OAuth configuration or the directory ID for a Graph endpoint. Most Microsoft tools use the same value, but forms sometimes label it differently.
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.
Recommended Free Tools
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.
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.
Quick Recap
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.




