microsoftgraph / microsoftgraph/entra-powershell

🙏 Entra.Groups | Add Parameters to Various Functions that Resolve Identities

Open
#1,512 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature ToTriage
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)

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.