Forum Discussion
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.
- Afaik no unfortunately
Vote for it here:
https://microsoftteams.uservoice.com/forums/555103-public/suggestions/38436874-entire-organisation-org-chart-tab-or-export
Adam 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.
- nreynolds425Copper 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_NuwestCopper ContributorPlease 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...?