EntraExporter icon indicating copy to clipboard operation
EntraExporter copied to clipboard

Enhancement: User Manager Export

Open roflrolle opened this issue 2 years ago • 2 comments

Currently the users manager is not included in the export. This is because the manager is not part of the default properties of a user object (see: https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-beta#properties)

It would help to have to the users manager in the export to view hierarchical data.

roflrolle avatar Mar 01 '23 07:03 roflrolle

I think if we'd expand the manager instead of extensions on this line, we'd get the data we need https://github.com/microsoft/EntraExporter/blob/afc222908513efbf5d5c35d8a3e7ed4b1a1dfbda/src/Get-EEDefaultSchema.ps1#L840C1-L840C76

I'm not sure if this expand can be perhaps parameterized so we can choose which field to expand ourselves? The limitation is that we cannot have multiple attributes passed to expand - https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http#expand-parameter

mahalel avatar Apr 16 '24 22:04 mahalel