--- title: "Look Up a User's Address Attributes in Entra ID" slug: "dex-wf-lookup-user-address-attributes" updated: 2026-11-30T16:15:42Z published: 2026-11-30T16:15:42Z canonical: "documentation.sysaid.com/dex-wf-lookup-user-address-attributes" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.sysaid.com/llms.txt > Use this file to discover all available pages before exploring further. # Look Up a User's Address Attributes in Entra ID Retrieve the postal address, city, state, country, and office location stored on an Entra ID user profile. **Complexity:** Beginner. **Impact:** user-data + read-only + privacy + directory-audit. ## Why use this workflow Entra ID (formerly Azure AD) stores several address-related attributes on every user object: `streetAddress`, `city`, `state`, `postalCode`, `country`, `officeLocation`, and `usageLocation`. These values flow into downstream services like Exchange Online, SharePoint profiles, Teams, and the Microsoft 365 address book (GAL). You may need to look up these attributes when: - A user asks what address is on file for them (common for remote and hybrid staff updating HR records). - You troubleshoot license assignment issues: `usageLocation` is required before most Microsoft 365 licenses can be applied. - You verify that HR or an HRIS sync (for example, Workday or SuccessFactors) wrote the expected values. - You audit directory data quality before a migration, compliance review, or e-discovery request. ## Expected outcomes - A clear view of all address-related attributes for a specific Entra ID user. - A repeatable method (admin center, API, or PowerShell) to retrieve the same data for any user in the tenant. - An exportable record that you can share with HR, the user, or attach to a ticket. ## Risks and considerations **Privacy:** Address data is personal information. Only query it for legitimate business reasons, and share results only with the user themselves or authorized personnel. In regions subject to GDPR or CCPA, logging or exporting this data may be in scope for data-protection controls. **Source of truth:** If your tenant is synced from on-premises Active Directory through Entra Connect, or from an HRIS, the Entra ID values are *read-only downstream*. Do not edit them in the Entra admin center: changes are overwritten at the next sync cycle. Update the upstream source instead. **usageLocation vs. country:** These are different fields. `usageLocation` is a two-letter ISO country code used for license compliance. `country` is a free-text display field. Do not confuse them. ## Required permissions | Permission | Why it's needed | | --- | --- | | User.Read.All | Read address attributes on any user in the directory via Microsoft Graph. | | Directory.Read.All | Alternative broader read permission that also covers user profile attributes. | | Global Reader or User Administrator role | Required for viewing user profiles in the Entra admin center. | ## Ask Dex Paste the prompt into a Dex conversation. ### Prompt for IT admins ``` Look up the address attributes (street, city, state, postal code, country, office location, and usage location) for {user} in Entra ID and return the results. ``` ### How an end user can ask Dex ``` What address is on file for me in my work account? ``` ## Manual steps (admin center) 1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com) as a Global Reader, User Administrator, or Global Administrator. 2. Go to **Identity** > **Users** > **All users**. 3. Search for the target user by display name, UPN, or email address and select the user's name to open their profile. 4. On the user overview page, select **Properties**. 5. Scroll to the **Contact information** section. You see: - **Street address** - **City** - **State or province** - **ZIP or postal code** - **Country or region** - **Office location** 6. For the license-related country code, scroll to the **Settings** section and note the **Usage location** field (a two-letter ISO code, for example `US`, `GB`, or `DE`). ### End-user self-service alternative A user who wants to see their own address can sign in to [My Account](https://myaccount.microsoft.com) and review the **Contact info** tile. They cannot change it there if the tenant is synced from HR or Active Directory, but they can read it. ## Microsoft Graph API Microsoft Graph exposes all address fields on the `/users/{id}` resource. By default, Graph returns only a small set of properties, so you must request the address fields explicitly with `$select`. ### Request ``` GET https://graph.microsoft.com/v1.0/users/{userPrincipalName}?$select=displayName,userPrincipalName,streetAddress,city,state,postalCode,country,officeLocation,usageLocation Authorization: Bearer {access_token} ``` ### Example response ``` {  "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(...)",  "displayName": "Ada Lovelace",  "userPrincipalName": "ada@contoso.com",  "streetAddress": "10 Downing Street",  "city": "London",  "state": "England",  "postalCode": "SW1A 2AA",  "country": "United Kingdom",  "officeLocation": "HQ-3F-West",  "usageLocation": "GB" } ``` ### Reading the signed-in user's own address A user running in a delegated context can read their own profile without `User.Read.All`: ``` GET https://graph.microsoft.com/v1.0/me?$select=streetAddress,city,state,postalCode,country,usageLocation,officeLocation ``` ### Bulk or filtered query To list all users in a given city, combine `$filter` and `$select`: ``` GET https://graph.microsoft.com/v1.0/users?$filter=city eq 'London'&$select=displayName,userPrincipalName,streetAddress,city ConsistencyLevel: eventual ``` ## PowerShell The `Microsoft.Graph` PowerShell SDK wraps the same Graph endpoints used above. Install it once, then connect with the required scope. 1. **Install the module** (first time only): ``` Install-Module Microsoft.Graph -Scope CurrentUser ``` 2. **Connect** with a read scope: ``` Connect-MgGraph -Scopes "User.Read.All" ``` 3. **Query the user**, selecting only the address-related properties (Graph does not return them by default): ``` Get-MgUser -UserId "ada@contoso.com" -Property DisplayName,UserPrincipalName,StreetAddress,City,State,PostalCode,Country,OfficeLocation,UsageLocation |    Select-Object DisplayName,UserPrincipalName,StreetAddress,City,State,PostalCode,Country,OfficeLocation,UsageLocation |    Format-List ``` 4. **Disconnect** when done: ``` Disconnect-MgGraph ``` If you omit `-Property`, the cmdlet returns a minimal property set and all address fields appear blank even when they are populated in the directory.