Skip to content

add manager export functionality#100

Open
roflrolle wants to merge 1 commit intomicrosoft:mainfrom
roflrolle:main
Open

add manager export functionality#100
roflrolle wants to merge 1 commit intomicrosoft:mainfrom
roflrolle:main

Conversation

@roflrolle
Copy link

PR for Issue #42

  • Adding manager as export
  • Manager will be in a seperate folder with a JSON containing the id,upn and displayname

Add Manager export
@roflrolle
Copy link
Author

@merill can you or someone please check this PR and merge it?

Should solve the problem in #42

DelegatedPermission = 'User.Read.All'
ApplicationPermission = 'User.Read.All'
}
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the closing },. Otherwise looks good!

@SamErde SamErde requested a review from Copilot February 4, 2026 14:21
@SamErde SamErde added the enhancement New feature or request label Feb 4, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds manager export functionality to the EntraExporter tool to address Issue #42. The change enables exporting user manager information, which is not included in default user properties. Manager data will be exported in a separate folder containing JSON files with id, userPrincipalName, and displayName.

Changes:

  • Added a Children configuration to the Users schema definition to export manager information via the Microsoft Graph API endpoint users/<placeholder>/manager

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

DelegatedPermission = 'User.Read.All'
ApplicationPermission = 'User.Read.All'
}
)
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing closing brace and comma after the Children array. The Users configuration object needs to be closed with }, after line 848. This follows the same pattern seen in other schema definitions (e.g., lines 690, 744, 826).

Suggested change
)
)
},

Copilot uses AI. Check for mistakes.
Comment on lines +841 to +847
GraphUri = 'users/<placeholder>/manager'
Path = 'Manager'
Select = 'id, userPrincipalName, displayName'
Tag = @('All', 'Users')
DelegatedPermission = 'User.Read.All'
ApplicationPermission = 'User.Read.All'
}
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation. The properties inside this child object use excessive spaces/tabs instead of following the consistent indentation pattern seen in other Children definitions throughout the file. Compare with similar definitions on lines 78-85, 673-688, or 707-742 for the correct indentation pattern.

Suggested change
GraphUri = 'users/<placeholder>/manager'
Path = 'Manager'
Select = 'id, userPrincipalName, displayName'
Tag = @('All', 'Users')
DelegatedPermission = 'User.Read.All'
ApplicationPermission = 'User.Read.All'
}
GraphUri = 'users/<placeholder>/manager'
Path = 'Manager'
Select = 'id, userPrincipalName, displayName'
Tag = @('All', 'Users')
DelegatedPermission = 'User.Read.All'
ApplicationPermission = 'User.Read.All'
}

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Formatting with VS Code should fix this (Shift + Alt + F).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants