@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
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.