Skip to content

Commit

Permalink
Merge pull request #1577 from MondayCoffee/fix_failToAddUserToSPOGroup
Browse files Browse the repository at this point in the history
fix to #1553 if "_api/Web/SiteUsers" then the user is always added to the SiteUsers instead of the SPOGroup
  • Loading branch information
gautamdsheth authored Nov 16, 2024
2 parents e1d376d + 362b05f commit fe8e568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdk/PnP.Core/Model/Security/Internal/SharePointUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public SharePointUser()
LoginName
};
var jsonBody = JsonSerializer.Serialize(body);
return new ApiCall("_api/Web/SiteUsers", ApiType.SPORest, jsonBody);
return new ApiCall(entity.SharePointGet, ApiType.SPORest, jsonBody);

}).ConfigureAwait(false);
};
Expand Down

0 comments on commit fe8e568

Please sign in to comment.