pnp / powershell

PnP PowerShell
https://pnp.github.io/powershell
MIT License
684 stars 351 forks source link

[BUG] Add-PnPGroupMember #4518

Closed YuriySamorodov closed 1 week ago

YuriySamorodov commented 2 weeks ago

Reporting an Issue or Missing Feature

Looks like Add-PnPGroupMember stopped working. It does not return any errors just does not add EntraID groups as members

Expected behavior

Add-PnPGroupMember should add EntraID groups as members of PnP groups

Actual behavior

No errors. PnP will not add EntraID groups as members. However, I can still add same group via UI,

Steps to reproduce behavior

Connect-PnPOnline
$group = Get-PnPEntraIDGroup -Identity 'AllUsers'
Add-PnPGroupMember -Group ( Get-PnPGroup -AssociatedVisitorGroup ) -LoginName "c:0t.c|tenant|$($Group.id)"

What is the version of the Cmdlet module you are running?

2.99.34

Which operating system/environment are you running PnP PowerShell on?

prashantgupta3 commented 1 week ago

Hi we are getting same issue

gautamdsheth commented 1 week ago

Hey, can you please try with tomorrow's or later nightly builds and let us know. A fix for this has been merged.

prashantgupta3 commented 1 week ago

I am able to add the user. Many thanks!

Thanks, Prashant Gupta

Sensitivity: Public From: Gautam Sheth @.> Sent: Saturday, November 16, 2024 9:53 PM To: pnp/powershell @.> Cc: Prashant Gupta (ITC) @.>; Comment @.> Subject: Re: [pnp/powershell] [BUG] Add-PnPGroupMember (Issue #4518)

CAUTION: This Email is from an EXTERNAL source. Ensure you trust this sender before clicking on any links or attachments.

Hey, can you please try with tomorrow's or later nightly builds and let us know. A fix for this has been merged.

— Reply to this email directly, view it on GitHubhttps://github.com/pnp/powershell/issues/4518#issuecomment-2480640878, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAHWORXSFUU6DBI5FDCC2VL2A5WNRAVCNFSM6AAAAABRG76UD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGY2DAOBXHA. You are receiving this because you commented.Message ID: @.**@.>>


The information in this e-mail is the property of Evalueserve and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message.