-
Notifications
You must be signed in to change notification settings - Fork 2
Show GraphMetadataExplorer
The Graph metadata is there to help you know what entities are in your environment. Microsoft's explanation of it is:
The metadata allows you to see and understand the data model of the Microsoft Graph, including the entity types and sets, complex types, and enums that make up the request and response packets sent to and from Microsoft Graph. You can use the metadata to understand the realtionships between entities in Microsoft Graph and establish URLs that navigate between entities. This navigation-based interconnectedness gives Microsoft Graph its unique character.
The function Show-GraphMetadataExplorer will run a script that gives you a nice UI to explore your tenant's metadata. If you have used some version of WMI Explorer in the past, this should be familiar to you.
To use this function, simply call Get-GraphAuthenticationToken to get the token for your tenant, then call Show-GraphMetadataExplorer. You'll be greated with a UI that shows your tenant name, tenant user, and the metadata for v1.0 and beta:

Here you can browse the different enums, entities, types, actions, and functions in your Tenant. When you click on an item, the relevant Tabs are displayed for that type. For instance, Enums will only have "Members" and "Raw Data":

Each node will have the Raw Data tab which will be the raw XML of the object you clicked on:

You can filter the list by typing your search criteria in "Filter" to find items. This will search the object names of everything in graph:

There is still a lot of work to do on the cmdlets, and on this tool, but it's a good start! Let me know if you want any more features.