-
Notifications
You must be signed in to change notification settings - Fork 37
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