microsoftgraph / microsoftgraph/entra-powershell
🙏 Entra.Groups | Add Parameters to Various Functions that Resolve Identities
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 213
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
Describe the feature
Make it so that you can pass more user-friendly values to the following commands (ideally doing this with any other commands I might've missed here as well)
- Add-EntraGroupMember.ps1
- Add-EntraGroupOwner.ps1
- Remove-EntraGroupMember.ps1
- Remove-EntraGroupOwner.ps1
How will this feature enhance your project and further the project’s overall goals? Who will benefit from this feature (i.e. all users; the project team)?
- This is a very missed feature from the AzureAD module. Currently it's fairly easy to make wrapper functions that accomplish this request however I feel like that only adds to the overall clutter/confusion, especially for less technical users.
Describe alternatives you've considered
- Wrapper functions
-
If I load up a completely fresh PowerShell session, install the Entra module, blah blah, and then want to quickly add someone to a group in a more human way, there's a LOT of additional work involved compared to how it was with the AzureAD module. Currently the quickest way/simplest way I've done it without a wrapper function is below, you can see how even from a glance this is not the most ideal situation.
-
Add-EntraGroupMember -GroupId (Get-EntraGroup -Filter "displayName eq '$($GroupName)'").Id -MemberId (Get-EntraUser -Filter "UserPrincipalName eq '$($UserUPN)'").Id
-
Additional context
- To avoid messing too much with the existing code, I feel like this could be fairly easily added by adding additional sets of parameters.
- For example, in Add-EntraGroupMember, something adding a parameter like -GroupName
- Resolving that group via searching for it by name and doing something along the lines of: $MemberId = (Get-EntraGroup -filter "DisplayName eq '$GroupName'").Id
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the parameter definitions and identity-handling paths in Add-EntraGroupMember.ps1, Add-EntraGroupOwner.ps1, Remove-EntraGroupMember.ps1, and Remove-EntraGroupOwner.ps1. Define the supported friendly group, member, and owner values, then verify that each command resolves them while preserving the existing identifier-based usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100