-
Notifications
You must be signed in to change notification settings - Fork 124
add manager export functionality #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add Manager export
| DelegatedPermission = 'User.Read.All' | ||
| ApplicationPermission = 'User.Read.All' | ||
| } | ||
| ) |
There was a problem hiding this comment.
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!
There was a problem hiding this 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' | ||
| } | ||
| ) |
Copilot
AI
Feb 4, 2026
There was a problem hiding this comment.
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).
| ) | |
| ) | |
| }, |
| GraphUri = 'users/<placeholder>/manager' | ||
| Path = 'Manager' | ||
| Select = 'id, userPrincipalName, displayName' | ||
| Tag = @('All', 'Users') | ||
| DelegatedPermission = 'User.Read.All' | ||
| ApplicationPermission = 'User.Read.All' | ||
| } |
Copilot
AI
Feb 4, 2026
There was a problem hiding this comment.
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.
| 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' | |
| } |
There was a problem hiding this comment.
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).
PR for Issue #42