Modern Sharepoint online list view filtering by location

Copper Contributor

I am building a modern list view filtering for a client on Sharepoint Online environment. One of the column is "Location" which is Store location e.g. 1234 
Each store logs in using their own credentials e.g. "Email address removed"
Ask is to filter the modern list view on a modern page to be able to just view their store related data when store logs in using their own credentials.
Is there any ways this can be done by Javascript insertion at the page level via Modern Script Editor? Any suggestions?

2 Replies

I was able to find the solution. Closing this now

@sneranacdw 

Can you please share your solution? I have sort of the same requirement. We used the current user filter webpart to filter logged-in users' department data. Hoping to use your solution to do the same on the modern page.