Information about your organization in Microsoft Entra ID provides a comprehensive view of your tenants identity environment, including tenant details, domains, licenses, and connected services. For IT administrators, understanding this organizational information is essential for effective management, compliance, and integration with other systems. To support this, there are simple, reliable ways to quickly review all your Microsoft Entra ID organizational information.
Connect-MgGraph -Scopes "Organization.Read.All"
Get-MgOrganization
Get-MgOrganization -Filter "VerifiedDomains/any(d:d/name eq 'yourdomain.com')"
Example query:
Connect-MgGraph -Scopes "Organization.Read.All"
Get-MgOrganization -Filter "VerifiedDomains/any(d:d/name eq 'yourdomain.com')"
Example output:
Id: a1b2c3d4-5678-90ab-cdef-1234567890ab
DisplayName: Yourdomain Ltd
VerifiedDomains: {Yourdomain.com, Yourdomain.onmicrosoft.com}
CountryLetterCode: US
TenantType: AAD
DefaultDomainName: Yourdomain.onmicrosoft.com
CreatedDateTime: 1/15/2024 10:05:12 AM
TechnicalNotificationMails: {admin@Yourdomain.com}
The syntax is as follows:
Get-MgOrganization
[-ExpandProperty <string[]>]
[-Property <string[]>]
[-Filter <string>]
[-Search <string>]
[-Skip ]
[-Sort <string[]>]
[-Top ]
[-ResponseHeadersVariable <string>]
[-Break]
[-Headers <IDictionary>]
[-HttpPipelineAppend <SendAsyncStep[]>]
[-HttpPipelinePrepend <SendAsyncStep[]>]
[-Proxy <uri>]
[-ProxyCredential <pscredential>]
[-ProxyUseDefaultCredentials]
[-PageSize <int>]
[-All]
[-CountVariable <string>]
[<CommonParameters>]
Example query:
Connect-MgGraph -Scopes "Organization.Read.All"
Get-MgOrganization -Filter "DisplayName eq 'Yourdomain Ltd'"
Example output:
Id: a1b2c3d4-5678-90ab-cdef-1234567890ab
DisplayName: Yourdomain Ltd
VerifiedDomains: {Yourdomain.com, Yourdomaincloud.onmicrosoft.com}
Country: US
City: Redmond
DefaultDomainName: Yourdomain.com
TechnicalNotificationMails: {admin@Yourdomain.com}
Here, the filter narrows the results to only the organization named Yourdomain Ltd. The output confirms its unique Id, verified domains, country, city, and technical notification email. Filtering helps admins quickly pinpoint a specific tenant in environments where multiple organizations are managed, making Microsoft 365 management and reporting more precise.
ADManager Plus is a user-friendly platform which helps Microsoft 365 admins streamline their daily tasks for faster and easier management.
Identify inactive accounts using scheduled ready-made reports. Quickly remove stale accounts to keep your directory secure and clutter-free.
Automate user provisioning and deprovisioning. Ensure users have the correct access, and eliminate unused or orphaned accounts.
Monitor group memberships and user privileges effectively using access reviews to prevent unauthorized access and maintain minimal permissions.
Access over 200 prebuilt reports on users, groups, licenses, and overall directory health. Export reports in CSV, PDF, or HTML formats for convenient auditing and compliance.
Make role assignments safer and easier by using clear delegation and workflows. Administrators stay in control while teams get the freedom to manage roles confidently without added risk.
Automate repetitive tasks such as bulk user updates, license management, and group modifications to save valuable time and reduce manual effort.
Detect users with excessive permissions and evaluate potential security risks with risk exposure management. Receive actionable recommendations to remediate vulnerabilities and strengthen your security posture.
Review the list of verified and federated domains in your organization to understand your namespace and identity federation setup. This impacts authentication and access control policies.
Extract organizational subscription and license information to monitor usage and ensure you are not overspending or under-licensed. This data supports budgeting and resource planning.
Integrate organizational information with identity governance solutions to strengthen monitoring, access reviews, and life cycle management, creating a holistic governance framework.
This error commonly occurs due to issues such as insufficient permissions, expired or invalid authentication tokens, or outdated Microsoft Microsoft Graph PowerShell modules. To resolve this, ensure you are connected with appropriate admin roles, update the Microsoft Graph module to the latest version, and authenticate properly using Connect-MgGraph. Running the cmdlet in PowerShell 7+ is recommended for better compatibility.
You can retrieve your organization's Tenant ID using Microsoft Microsoft Graph PowerShell with the following command:
(Get-MgOrganization).Id
Alternatively, your Tenant ID can be found in the Microsoft Entra admin portal under Entra ID > Overview > Tenant ID.
Microsoft Entra ID organization URLs generally follow a standard pattern:
https://login.microsoftonline.com/{TenantID}/
You can use the Tenant ID retrieved from the previous step to form your organization-specific URL. Additionally, certain service URLs or custom domain URLs may be used depending on your environment and configurations.