# Homey.users.getUserMe() Returns Incorrect User Information in Homey Script

**URL:** <https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031>\
**Category:** Questions & Help\
**Created:** [January 27, 2025, 6:46pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031 "2025-01-27T18:46:17Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baptiste\_Dhaussy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baptiste_dhaussy/32/79445_2.png) [@Baptiste\_Dhaussy](https://community.homey.app/u/Baptiste_Dhaussy)\
**Post date:** [January 27, 2025, 6:46pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/1 "2025-01-27T18:46:17Z")

</div>

Hi everyone,

I encountered an issue with the `Homey.users.getUserMe()` function when using it in **Homey Script**.

- **Expected Behavior:**  
When I run `Homey.users.getUserMe()` on the **Homey Developer platform** , it correctly returns my information (e.g., my role, name, etc.), as expected.

- **Actual Behavior:**  
However, when I execute the exact same command (`Homey.users.getUserMe()`) in **Homey Script** , it always returns the information of the **owner of the Homey box** (the primary account), instead of my own user information.

This seems to be inconsistent, as the function works as expected in the Developer platform but not in Homey Script.

Is this the intended behavior? If so, is there another way to retrieve the user information of the person triggering the flow or running the script?

Any help or clarification would be greatly appreciated!

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 27, 2025, 7:34pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/2 "2025-01-27T19:34:28Z")

</div>

The way I see it you found a bug.

I’ve tried the same, same results (Pro 2019)

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [January 27, 2025, 7:40pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/3 "2025-01-27T19:40:50Z")

</div>

Conclusion the script always runs in the context of the owner.

And that is logical imho as who should be the user when something happens like a door opend…

At least you can’t expect Homey to asume it is someone else.

Best case it should run then in system or some other low priv user context  
System would be a even bigger security issue.

---

<div class="post-metadata">

**Author:** ![Baptiste\_Dhaussy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baptiste_dhaussy/32/79445_2.png) [@Baptiste\_Dhaussy](https://community.homey.app/u/Baptiste_Dhaussy)\
**Post date:** [January 27, 2025, 8:02pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/4 "2025-01-27T20:02:58Z")

</div>

I understand your logic, but I don’t think it’s intentional, because it means that someone who can create a flow will execute it as the owner.  
I find that user rights at homey are very poorly managed, not only can you not create restrictions for certain guest users, but you can’t do it even via a script.  
I think this is more a side-effect of the fact that homey script is run as a proprietary application than a deliberate choice during development…  
In any case, it makes this command completely useless in my opinion (except perhaps for application developers).  
So there’s no way of knowing who’s launching a flow or its status, which is a shame!

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [January 27, 2025, 8:05pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/5 "2025-01-27T20:05:37Z")

</div>

> [@Baptiste\_Dhaussy](#):
>
> So there’s no way of knowing who’s launching a flow or its status

Almost Correct,  
it could even be a trigger  
As said fe a door contact. You can see that from the device insights.

---

<div class="post-metadata">

**Author:** ![Baptiste\_Dhaussy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baptiste_dhaussy/32/79445_2.png) [@Baptiste\_Dhaussy](https://community.homey.app/u/Baptiste_Dhaussy)\
**Post date:** [January 27, 2025, 8:30pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/6 "2025-01-27T20:30:13Z")

</div>

In fact, here’s my real problem.  
I have a regular guest (my brother-in-law) who comes to my house very often and sometimes to watch the dog.  
So naturally I created a guest account for him to open the gate, the front door and the alarm.  
But he has access to everything and it’s quite annoying: the lights, the presence, the cameras…  
So I’d like to manage his rights, but it’s not advanced enough, so I’m looking for ways to divert him via scripts, and I’m also logging door openings with the person who opened it, for example.  
If anyone has a solution other than third-party software, I’d love to hear from you.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 27, 2025, 9:41pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/7 "2025-01-27T21:41:36Z")

</div>

These _[Device Capabilities app](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287)_ cards do work, they provide different user and client info:

 ![1000000406](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/c/dc84a03c7fc7d3ccd4db1751721214092bba5020.jpeg)

 ![1000000408](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d8e03ae5925a25cae452da1af8420619d9b31bde.jpeg)

 ![1000000410](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/2/62cf4f724fe68e0a94e13c7c195acbc069499095.jpeg)

---

<div class="post-metadata">

**Author:** ![Baptiste\_Dhaussy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baptiste_dhaussy/32/79445_2.png) [@Baptiste\_Dhaussy](https://community.homey.app/u/Baptiste_Dhaussy)\
**Post date:** [January 28, 2025, 7:00am UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/8 "2025-01-28T07:00:07Z")

</div>

Hello,

Thanks for your reply, I already know this trick but it doesn’t really interest me because it implies that the user must perform an action on an object and not on a feed.  
The thing is that on android you can’t put shortcuts (widgets) on objects but only on flows.  
My intention behind this post is to explore the possibilities via homey script and another application that could allow you to do this in a flow.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [January 28, 2025, 11:27am UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/9 "2025-01-28T11:27:54Z")

</div>

> [@Baptiste\_Dhaussy](#):
>
> and another application that could allow you to do this in a flow.

What other application?

---

<div class="post-metadata">

**Author:** ![Baptiste\_Dhaussy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baptiste_dhaussy/32/79445_2.png) [@Baptiste\_Dhaussy](https://community.homey.app/u/Baptiste_Dhaussy)\
**Post date:** [January 28, 2025, 9:13pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/10 "2025-01-28T21:13:05Z")

</div>

Sorry, it’s not “and” but “or”.  
I’m looking for another application that might help me in my search, such as homey script or advanced device capabilities.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [January 28, 2025, 11:53pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/11 "2025-01-28T23:53:03Z")

</div>

> [@Baptiste\_Dhaussy](#):
>
> looking for another application that might help me

Ok. In that case you now know the restrictions from Homey and almost sure the only other option is the Device Capabilities app as mentioned by @Peter_Kawa

---

<div class="post-metadata">

**Author:** ![Baptiste\_Dhaussy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baptiste_dhaussy/32/79445_2.png) [@Baptiste\_Dhaussy](https://community.homey.app/u/Baptiste_Dhaussy)\
**Post date:** [January 29, 2025, 12:18am UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/12 "2025-01-29T00:18:16Z")

</div>

It doesn’t work either, several posts in the device capabilities topic were talking about it just yesterday.  
I understand that you don’t have the solution to my problem but that doesn’t make it go away, thanks for taking the time to read.  
Anyway, if one day someone comes up with a clue, I’d love to hear from you!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 29, 2025, 12:15pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/13 "2025-01-29T12:15:31Z")

</div>

> [@Baptiste\_Dhaussy](#):
>
> It doesn’t work either

Please define “doesn’t work”.

I only want to let you know, the tests and resulting log I showed were created right before I posted it the other day.

But, a possible difference might be: I own Pro 2019’s, and you probably own a Pro 2023 (you didn’t mention it)?

I hope Device Capabilities developer Arie finds a fix if “it doesn’t work” on a Pro 23.

---

<div class="post-metadata">

**Author:** ![Baptiste\_Dhaussy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baptiste_dhaussy/32/79445_2.png) [@Baptiste\_Dhaussy](https://community.homey.app/u/Baptiste_Dhaussy)\
**Post date:** [January 29, 2025, 1:09pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/14 "2025-01-29T13:09:28Z")

</div>

Yes exactly, if I’ve understood the posts correctly there’s trouble with hp23 you can’t spot the capabilities.

---

<div class="post-metadata">

**Author:** ![Defi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/defi/32/54765_2.png) [@Defi](https://community.homey.app/u/Defi)\
**Post date:** [February 5, 2025, 12:02pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/15 "2025-02-05T12:02:58Z")

</div>

Is there any solution to retrieve the user who triggered a flow (be it from the dashboard, from the iOS widget, from Shortcuts, etc.)? My use case is that I want to send a “push confirmation” to the user who triggered the flow so that they can respond to a question before continuing the flow. The built-in “And” card requires that you specify a fixed recipient of the notification, so instead I’m using a HomeyScript to send the notification to “await Homey.users.getUserMe()”, and currently this sends the notification to the owner of the Homey Pro so it’s pretty useless…

Honestly, I don’t understand why the current user cannot be retrieved when you run a Flow explicitly (by clicking on it).

Athom, anyone reason this?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [February 5, 2025, 3:05pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/16 "2025-02-05T15:05:23Z")

</div>

> [@Defi](#):
>
> there any solution to retrieve the user who triggered a flow

NO.

> [@Defi](#):
>
> Athom, anyone reason this?

Don’t expected Athom to answer here… this is a community forum. Pls contact Athom by creating a support ticked using the support system.

---

<div class="post-metadata">

**Author:** ![Baptiste\_Dhaussy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baptiste_dhaussy/32/79445_2.png) [@Baptiste\_Dhaussy](https://community.homey.app/u/Baptiste_Dhaussy)\
**Post date:** [February 5, 2025, 3:32pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/17 "2025-02-05T15:32:58Z")

</div>

I’ve created a support ticket, but so far there’s been no response…  
You can also create one to support the request

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 5, 2025, 9:20pm UTC](https://community.homey.app/t/homey-users-getuserme-returns-incorrect-user-information-in-homey-script/129031/18 "2025-02-05T21:20:04Z")

</div>

Possibilities increase when you use these tools by [Device Capabilities app](https://community.homey.app/t/43287), see screenshot 2 & 3.

In case a flow turns on a light, you can determine who started a flow with what.  
Next, you can retrieve the flowname in the light’s history:

 ![1000042810](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/6/06dc9a35eff27ce539ad36885617c4ce66e42765.jpeg)

Device Capabilities app cards:

 ![image5](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/c/dc383fc23bac154f09ff4f3ecac0b2711633f841.jpeg)

 ![Screenshot_20240901_124533_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/d/4d1a4fe66a470b75e6276df0680e6f11fb2f03eb.jpeg)
