Hello!
Thanks for asking a Question!
To export organization chart details of your Office 365 (O365) users into an Excel or text file from SharePoint Online, here are a few options:
- Use SharePoint Online PowerShell: You can use SharePoint Online PowerShell module to export user information from SharePoint User Profile Service. This is particularly useful if you want to export user properties such as Manager, Title, Department etc. you can use the export-csv or export-text cmdlets to export data to Excel or text file.
- Use SharePoint UI: You can use the SharePoint User Profile Service to view user information, if the Manager property is set up correctly, you can use the "Organization chart" feature to view the organizational structure. You can also export this information to Excel using the built-in "Export to Excel" feature.
- Use Third-party tools: There are also third-party tools that can help you export the organization chart details of your O365 users. Some examples are ShareGate, Nintex and Microsoft Flow. These tools can automate the process of retrieving and exporting the data for you, and also provides a more advanced features and more data to export.