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

New cmdlet: Remove-PnPTeamsChannelUser #1840

Merged
merged 3 commits into from
May 11, 2022

Conversation

milanholemans
Copy link
Contributor

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #1767

What is in this Pull Request ?

  • Moved all Teams channel membership logic in a separate region in TeamsUtility class.
  • Added XML documentation for Teams channel membership utility methods.
  • Unified naming for Teams channel membership utility methods.
  • Added logic for Remove-PnPTeamsChannelUser cmdlet.

Examples:

Remove-PnPTeamsChannelUser -Team "My Team" -Channel "My Channel" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA==
Remove-PnPTeamsChannelUser -Team "My Team" -Channel "My Channel" -Identity 00000000-0000-0000-0000-000000000000
Remove-PnPTeamsChannelUser -Team "My Team" -Channel "My Channel" -Identity john.doe@contoso.com -Force

@gautamdsheth gautamdsheth merged commit 3c39ecb into pnp:dev May 11, 2022
@gautamdsheth
Copy link
Collaborator

Thanks @milanholemans , merged this PR :)

@milanholemans milanholemans deleted the remove-teamschanneluser branch May 11, 2022 19:35
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.

New Cmdlet: Remove-PnPTeamsChannelUser
2 participants