Get-EntraUser | Add-EntraGroupMember doesn't work
Get-EntraUser -UserId <GUID>| Add-EntraGroupMember -GroupId <GUID> fails with error New-MgGroupMember_CreateExpanded: Invalid object identifier 'Microsoft.Graph.PowerShell.Models.MicrosoftGraphUser'.
Instead of the whole object you need to pipe just user's ID to make pipeline work.
Thanks, @alexandair, for bringing this up!
We have prioritized breaking the module into modular components. This will be fixed as part of a larger work item for pipelining patterns described in this issue - https://github.com/microsoftgraph/entra-powershell/issues/746 (you are familiar with this item 💯)
Hi, @alexandair,
We've made this a priority and will keep you updated on our progress.
Thank you!
Tested in v1.10.0 and it works