I believe you can use the list function on users and add a queries array. The only issue I'd think of this is that it looks like labels are an array and queries for arrays were not added until 1.5, which is not avaliable on cloud right now, but I as I understand it'll be there soon (ish).