Microsoft Sentinel
Cloud and workloads

Query 1: Find nested group relationships nexting up to 8 levels deep

In brief

The article now presents the GQL query as a Python example for exploring nested group relationships after graph creation. Documentation metadata was also updated.

What Defender admins need to know

No administrator action is required.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

You've now created a graph in the notebook.

To showThe following Python example runs a visual representation of the graph, in a new cell paste and run the following sample Graph Query Language (GQL) query.query against the graph you just created to explore nested group relationships. Use queries like this one after graph creation to traverse membership hierarchies and uncover indirect access paths. To try it, paste the code into a new notebook cell and run it. This sample query traverses nested Microsoft Entra group memberships up to eight levels deep and displays the resulting relationships:

# Query 1: Find nested group relationships nexting up to 8 levels deep