I have the custom document library with a people and groups columns.So, whenever the user uploads a doc in the library, manual they will specify any SharePoint group name in the people and group column.Now I would like to filter the document library files based on the groups.Below end point, i tried in my scenario, but no luck
End Point URL :"/_api/web/lists/getbytitle('DocName')/files?$filter=groupNameId eq 2"
here "groupName" is original column name(People and Groups).Since I am trying to filter doc based on the group id, I used "groupNameId" and Here "2" is the group Name ID.