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

Consistency when retrieving Site Group by name (Closes #1721) #1808

Merged

Conversation

martinlingstuyl
Copy link
Contributor

Consistency when retrieving Site Group by name.

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #1721

What is in this Pull Request ?

Added some consistency between Get-PnPGroup, Get-PnPGroupPermissions and Set-PnPGroupPermissions commandlets. When using the name parameter, the group is queried through the PnP Core SDK, which is case sensitive. Also added consistent null checks with PSArgumentExceptions when group was not found.

@gautamdsheth gautamdsheth merged commit 1527d49 into pnp:dev Apr 28, 2022
@gautamdsheth
Copy link
Collaborator

Awesome , thanks @martinlingstuyl for this update !
Much appreciated :)

Didn't think myself that a case sensitivity issue would go so far, earlier I just thought that maybe a ToLower or something would be enough 😂😊

@martinlingstuyl
Copy link
Contributor Author

It's new for me as well. Another solution would have been to load the titles of all sitegroups in memory, and then compare them clientside with Case Sensitivity disabled... but well, that just feels wrong, doesn't it? 😂 anyway, if there happens to be a better approach, we can change it again!

@martinlingstuyl martinlingstuyl deleted the case-sensitivity-issue-getpnpgroup branch April 28, 2022 14:56
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.

Set-PnPGroupPermissions Case Sensitivity Inconsistency
2 participants