M365: Generate Org Chart Crate
Last updated
Was this helpful?
Last updated
Was this helpful?
Automatically generate an organizational chart from Microsoft 365 user data with the M365 Generate Org Chart Crate. Referencing the manager and job title fields, it produces an HTML diagram that helps visualize reporting relationships across the organization. This is particularly useful for HR, IT, and leadership teams managing structure or onboarding processes. The Crate uses a bundled HTML template to render the org chart. Basic customization, such as layout or styling, can be applied by editing this template.
Retrieve user directory data: Fetch users from Microsoft Graph, including each user's job title and assigned manager.
Filter disconnected users: If include_isolated_users
is set to false, it excludes users without a manager or who are not a manager themselves, focusing the chart on connected hierarchies.
Generate org chart code: Constructs a diagram using Mermaid.js syntax to represent organizational relationships visually.
Build HTML page: Embeds the Mermaid.js org chart into an HTML template.
Send notification email: Emails the user a link to access and view the generated org chart.
The generated chart reflects a snapshot in time and does not auto-update as org structure changes.
Before unpacking this Crate, you'll first need to set up the Microsoft Graph integration, via our .
Navigate to Crates > Crate Marketplace in the left side menu of the Rewst platform.
Search for M365: Generate Org Chart
.
Click on the Crate tile to begin unpacking.
Click Unpack Crate.
Click Continue.
Note that you have the option under the Webhook and Form Submission accordion menus to activate the Crate for all future organizations in addition to the current one. Current org-only is the default. You may also set activation to certain .
Click Unpack Crate.
Navigate to Automations > Forms.
Locate the form titled Microsoft: Build Org Chart.
Click ⋮ > Usages.
Click View Direct URLS.
Click on the link in the dialog that appears.
Click Submit.
Check the email specified in your form submission for the receipt of the chart.
Navigate to Automations > Templates.
Click > to open and edit the template.
Fill out the form as desired.
Search for Org Chart HTML Template
.
Got an idea for a new Crate? Rewst is constantly adding new Crates to our Crate Marketplace. Submit your idea or upvote existing ideas here in our .