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

fix to #1553 if "_api/Web/SiteUsers" then the user is always added to the SiteUsers instead of the SPOGroup #1577

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

czullu
Copy link

@czullu czullu commented Nov 15, 2024

@jansenbe after the fix #1553 i was not able to add users to SharePoint Groups anymore. Output did show that await spGroup.AddUserAsync("i:0#.f|membership|xyz"); would send a post request to SiteUsers instead of the SPOGroup and therefore the user does not get added.

@gautamdsheth gautamdsheth merged commit fe8e568 into pnp:dev Nov 16, 2024
3 checks passed
@gautamdsheth
Copy link
Collaborator

Thanks @czullu for the fix , ran into the same issue in PnP PowerShell as well where we use the same code.

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.

SiteUsers properties are not loaded if requested individually
2 participants