Getting and sending a userid variable through arduino

I'm working on a project where I'm collecting data from 3 Arduino Nano 33 IOT boards. This data is then being sent to a raspberry pi via UDP which is integrated with Google IOT core where I am then storing the values in a BigQuery table in Google Cloud. So far everything is working fine however for the project I'm working on I need to be able to uniquely identify each user/session for when I generate reporting data.

What I'm wondering is what would be the best approach to pass a userid or some form of sessionid value to the arduino upon start up to send along with the data I'm already collecting?

My initial thoughts are to use a GET request to pull a userid/sessionid from a website I will be making as an interface to view the data. Would this be the best approach for this or is there a better method?