Skip to content

Fix null exception in Update-PnPTeamsUser#4068

Merged
gautamdsheth merged 2 commits intopnp:devfrom
jackpoz:fixes/UpdateTeamsUser-NullException
Jul 10, 2024
Merged

Fix null exception in Update-PnPTeamsUser#4068
gautamdsheth merged 2 commits intopnp:devfrom
jackpoz:fixes/UpdateTeamsUser-NullException

Conversation

@jackpoz
Copy link
Contributor

@jackpoz jackpoz commented Jul 3, 2024

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #4056

What is in this Pull Request ?

Fix null dereference exception in Update-PnPTeamsUser happening right after a user is removed from a Team but still in the connected M365 group, for the few seconds that the 2 are out of sync.

This is the new behavior when removing a member manually from Teams client and running Update-PnPTeamsUser:
image

This is the old behavior:
image

jackpoz and others added 2 commits July 3, 2024 23:22
Fix null dereference exception in Update-PnPTeamsUser happening right after a user is removed from a Team but still in the connected M365 group, for the few seconds that the 2 are out of sync.
@gautamdsheth gautamdsheth merged commit 3d680a0 into pnp:dev Jul 10, 2024
@gautamdsheth
Copy link
Collaborator

Thanks @jackpoz , have merged it , would make things more clearer for end users !

@jackpoz jackpoz deleted the fixes/UpdateTeamsUser-NullException branch August 10, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]Object reference not set to an instance of an object. Calling Update-PnPTeamsUser -Team $TeamID -User $UserUPN -Role 'Member' -force

2 participants