Entra ingest Department and Manager fields
Ingest Entra users Department and Manager
Description: In the Entra module, the Department field is not ingested in the current implementation. It appears to be here, but the MSFT graph API appears to require you to specify which fields you want to ingest. Department is not a default so it always returns null. Here are the common properties that are always returned: https://learn.microsoft.com/en-us/graph/api/resources/users?view=graph-rest-1.0#common-properties
Retrieving a user's manager actually appears to be a separate endpoint: https://learn.microsoft.com/en-us/graph/api/user-list-manager?view=graph-rest-1.0&tabs=http#http-request
It would likely be best to attach this to the user node directly and build relationships later connecting reports to their management, creating a chain. Would need to happen after ingesting all users and their direct manager. We'd need to support the case where someone doesn't have a manager, like the CEO
h/t @chandanchowdhury for the tips here 😄