cartography icon indicating copy to clipboard operation
cartography copied to clipboard

Entra ingest Department and Manager fields

Open kunaals opened this issue 6 months ago • 0 comments

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 😄

kunaals avatar Jun 25 '25 21:06 kunaals