Check and Update Tenant Info Using Graph API

Liu, Maggie 21 Reputation points
2021-02-22T20:17:55.553+00:00

Hi Team,

Currently we have a request to get/set tenant details(group policies, etc), I'd like to ask if I can find specific tenant using Graph API? and if I can access all the properties of one tenant and revise them?

Besides, I saw that we can get current tenant information by using : GET https://management.azure.com/tenants?api-version=2020-01-01
May I ask what is the different of this management portal and Graph API? Which one is better for me to use?

Much appreciate!
Maggie

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,077 questions
0 comments No comments
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,496 Reputation points Microsoft Employee
    2021-02-24T22:38:01.127+00:00

    @Liu, Maggie
    Thank you for your post!

    When it comes to editing your tenant details with the MS Graph API and changing all the properties, can you expand further on what you mean by that? What properties are you wanting to edit? For Group Policies, I don't believe you can get/set this info with the Graph API. However, I did find an Azure AD policy API which might be something similar to what you're looking for.

    Full list of Azure AD/Identity API calls:
    Working with Azure Active Directory resources in Microsoft Graph
    71761-image.png

    As for the graph.microsoft.com endpoint and the management.azure.com endpoint, one isn't better than the other. The one you choose to use will solely depend on what you're trying to accomplish. With the Microsoft Graph endpoint, this enables you to integrate with the best of Microsoft 365, Windows 10, and Enterprise Mobility and Security services in Microsoft 365, using REST APIs and client libraries. If you intend to use Azure resource manager/Azure specific REST APIs, the ARM provider APIs use https://management.azure.com/.

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.


0 additional answers

Sort by: Most helpful