How to use the Changelog Query to get Group changes

Gal Yaniv 65 Reputation points
2023-08-29T06:07:14.65+00:00

Hi,

I am trying to get events for adding a user to a sharepoint group in sharepoint 2016 using the REST API.

User's image

I tried to use the GroupMembershipAdd, but I got no changes.

Is this option supported for the REST API in sharepoint 2016?

Thanks,

Gal

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2023-08-29T09:33:07.5+00:00

    HI @Gal Yaniv

    From what I understand, the GroupMembershipAdd property of the ChangeQuery object is a new feature introduced in SharePoint Online and SharePoint 2019 to query for changes in group membership.

    SharePoint 2016 doesn't support it because SharePoint 2016 is based on an older version of the SharePoint codebase that doesn't include this feature.

    Therefore, you cannot use the REST API to get group membership changes in SharePoint 2016 through this property.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Feng

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.