If you’re connecting the KWIZ Org Chart to Azure AD using Graph API and the chart displays all users in a flat line with no hierarchy, this is likely caused by:
- Missing Manager attributes in Azure AD
- Filters that exclude users without a filled-in Department or other required fields
Follow the steps below to resolve the issue:
1. Ensure Manager Field Is Populated in Azure AD
The Org Chart builds the hierarchy using the manager field in each user’s Azure AD profile.
- Go to Azure AD and confirm that all users have their Manager assigned.
- If this field is empty, the user will not appear under their supervisor in the Org Chart.
2. Review or Adjust the Filtering Logic
If a filter is applied (intentionally or from the default example), it may exclude valid users.
Example filter:
return item && item.userPrincipalName && !item.userPrincipalName.includes("resource") && true;
This filter removes any account with resource in its userPrincipalName-useful for excluding shared/resource accounts.
- Adjust or remove filters if they are too restrictive.
- Make sure important fields like Department are filled in if your filter depends on them.
Now the hierarchy should update automatically to reflect your changes.