How to Set a User's Manager and Job Title in the Microsoft Entra Admin Center
Microsoft 365 only knows who reports to whom if somebody tells it. That "somebody" is the Manager field on each person's account, next to their Job title. Fill them in, and Outlook, Teams and the apps you build all know who someone's manager and direct reports are, and what their role is.
