I am trying to use getUserProperties (
link) to check whether users have logged in to my account. across multiple Google spreadsheets. However, I did an experiement and it seems like different users in the same field share the same getUserProperties.
My experiement: I am trying to publish my App Script as an add-on. Right now it is bound to a Google Sheets file. Under my first email account, I set User Properties to a certain value. I then share that file with another email of my and I also gave access to that email to use my unpublished add-on. I then open the same Google Sheets file under the 2nd email. When I retrieve User Properties, it shows the same User Properties I set earlier under the 1st email.
I wonder whether this is expected behavior. I thought User Properties are unique to each user, why 2 different emails share the same User Properties ? Thanks