microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
388 stars 341 forks source link

Permissions Slow to Apply #1464

Closed taylorSteeleIntergen closed 3 years ago

taylorSteeleIntergen commented 3 years ago

Version used 3.16.0.0

Describe the bug SharePoint permissions are slow to apply and users are able to see content that they do not have access to.

To Reproduce

Expected behavior

Desktop (please complete the following information):

FranckyC commented 3 years ago

Hi @taylorSteeleIntergen, maybe https://github.com/microsoft-search/pnp-modern-search/discussions/1460 can help you. I close this one as it is not directly related to the Web Parts.

taylorSteeleIntergen commented 3 years ago

@FranckyC, I disagree that this is not related to the web parts. The issue only appears when using the web parts, the permissions work as expected in both classic and out-of-the-box modern search.

FranckyC commented 3 years ago

@taylorSteeleIntergen then you must inspect the query to see if this is the same as other interfaces. I guess not because there is no security trimming or anything like this in the Web Parts, the secruity part is done at API level.

taylorSteeleIntergen commented 3 years ago

@FranckyC does the web part cache results at all?

FranckyC commented 3 years ago

There is no cache mechanism there

wobba commented 3 years ago

You have to wait for a security crawl to occur so that ACL's are updated in the search index. This runs at an irregular interval we cannot control.

The quickest way to have item access revoked is to grant access via AAD groups and not on items themselves.