Skip to content
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

Get-EntraUser | Add-EntraGroupMember doesn't work #1144

Open
alexandair opened this issue Oct 6, 2024 · 1 comment
Open

Get-EntraUser | Add-EntraGroupMember doesn't work #1144

alexandair opened this issue Oct 6, 2024 · 1 comment
Labels
bug Something isn't working P0 Highest priority ToTriage Triaged

Comments

@alexandair
Copy link
Collaborator

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.

@SteveMutungi254
Copy link
Contributor

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 - #746 (you are familiar with this item 💯)

@SteveMutungi254 SteveMutungi254 added bug Something isn't working Triaged and removed ToTriage labels Oct 22, 2024
@SteveMutungi254 SteveMutungi254 added P0 Highest priority and removed ToTriage labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Highest priority ToTriage Triaged
Projects
None yet
Development

No branches or pull requests

2 participants