Forum Discussion

RanMilstein's avatar
RanMilstein
Copper Contributor
Aug 26, 2020

export Organization structure

Hello,

Is there a way to export the org structure tree in some format (CSV, JSON, xls, other)?

  • While there is no way to export this out of Teams, the org chart is build based on information stored within your directory, which you can query programmatically via PowerShell or the Graph API to build your own solution.

  • While there is no way to export this out of Teams, the org chart is build based on information stored within your directory, which you can query programmatically via PowerShell or the Graph API to build your own solution.

    • nreynolds425's avatar
      nreynolds425
      Copper Contributor

      VasilMichev Not a good response as this does not provide even the request URL nor the Powershell Module/cmdlet to use. I must also point out that Theresa should not have been able to mark this as the best response (should be up to the requester) as a Microsoft agent. The Microsoft agent is pretty byast especially considering the lack of information/direction in the answer (microsoft graph is a huge API you could have at least provided the exact get to call, not to mention provided some template code based off what Teams uses).

    • Ward_Williams_Nuwest's avatar
      Ward_Williams_Nuwest
      Copper Contributor
      Please give some more information on how to do this Vasil. Can you point us to some sample Powershell code or a link to a description step by step of how to do this? Obviously this data is in Teams, so hopefully there's a standard way to do it...?

Resources