Power Automate - Get SharePoint items using Created By/Modified By
Recently I had an interesting request where someone was trying to filter items based on the Created By field in SharePoint using Power Automate. I thought, that should be pretty straight forward, make a claim or something similar and I headed to Google.
Surprisingly there's not actually that many hits and it took quite a bit of digging. The answer once you realise is pretty straight forward.
SharePoint holds a hidden(ish) list, the "User Information List" you can view it by adding the following to a Site Collections URL:
This list holds all the "Ensured Users" on the site - you can google that one if you want to find out more. It also holds the information on which you can use in the filters for People Fields. Here are all the useful filters you can use:
Keep in mind the Power Automate query uses the column internal names, which are Editor and Author respectively. The other part is how do you query into those People Fields, turns out all you need to use is a forward slash: