Run user (id) search by tag

Run user (id) search by tag

@Vincent Raaijmakers

My goal is to send push notifications from my analysis to Run Users with a specific tag.

Then I can use the user ID to push a message as in:
await“userID”, {
title: ‘Notification Alert’,
message: You received a notification for the device: ${device_name}. Variable: ${scope[0].variable}, Value: ${scope[0].value},
} else {
context.log(‘User ID not found for this device.’);

I have no idea:
a) how to get a list of Run Users (and their ID).
b) filtered by Tag

Can someone please help?