Share via

How to update State/Province on Microsoft Entra?

Shivansh Agarwal 45 Reputation points Microsoft Employee
2026-04-30T10:19:59.1733333+00:00

GraphApi/organization -> from where does this graph api fetch the state information on organization level? How can I update the state field on organization level? I cannot find this field in the Microsoft Entra Id.

I understand country/region cannot be updated once the tenant is created: https://learn.microsoft.com/en-us/answers/questions/5613477/wrong-tenant-country-region-on-microsoft-entra-how

But nothing is mentioned above the state field.

From graph api I verified state field is coming up as null

User's image

Microsoft Security | Microsoft Graph

2 answers

Sort by: Most helpful
  1. Vasil Michev 126.1K Reputation points MVP Volunteer Moderator
    2026-04-30T13:22:12.87+00:00

    You can update the state property via the PATCH method: https://learn.microsoft.com/en-us/graph/api/organization-update?view=graph-rest-beta&tabs=http

    The caveat is that you need to use the /beta endpoint for this. And you need to make sure you're using the /organization/{id} endpoint, with Organization.ReadWrite.All permissions. Here's an example:

    PATCH https://graph.microsoft.com/beta/organization/84841066-274d-4ec0-a5c1-276be684bdd3
    
    {
        "state":"blabla"
    }
    

    User's image


  2. Q&A Assist
    2026-04-30T10:20:17.0633333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The tenant-level Country/Region value is fixed after directory creation and cannot be changed. However, the State/Province value is not a tenant-level setting; it is a user (or customer) profile attribute that can be set and updated.

    To update State/Province for users in Microsoft Entra ID:

    1. Use the Microsoft Entra admin center for bulk edits
      • Sign in to the Microsoft Entra admin center as a User Administrator.
      • Go to Entra ID > Users.
      • Select up to 60 users and choose Edit.
      • In Edit properties, update State or province and save.
    2. Use PowerShell for scripted updates
      • Install and import the Microsoft.Entra.Users PowerShell module.
      • Use Set-EntraUser with the -Country and/or -State parameters to update user attributes, for example:
             Set-EntraUser -UserId <userObjectId or UPN> -State "WA"
        
      • Update-EntraUser is an alias for Set-EntraUser.
    3. For External ID (customer) accounts
      • In Microsoft Entra External ID user flows, State/Province is the built-in state attribute.
      • Configure it in the sign-up user flow so it is collected and stored; it can then be read and updated via Microsoft Graph using the state property on the user resource.

    The null state value seen in Microsoft Graph simply indicates that the attribute has not been set yet. Once populated via the admin center, PowerShell, or user flows, subsequent Graph queries will return the configured value.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.