# Get logged user information in custom node

**URL:** <https://discourse.nodered.org/t/get-logged-user-information-in-custom-node/50796>\
**Category:** Developing Nodes\
**Created:** [9 September 2021 07:05 UTC](https://discourse.nodered.org/t/get-logged-user-information-in-custom-node/50796 "2021-09-09T07:05:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 September 2021 15:52 UTC](https://discourse.nodered.org/t/get-logged-user-information-in-custom-node/50796/3 "2021-09-09T15:52:11Z")

</div>

Hi @chiche

it depends what exactly you are trying to do in `myNode.js`.

A node deployed in the runtime has no knowledge of the editor or any concept of users.

The only place you may have code in `myNode.js` that cares about editor users is if you have created a custom admin HTTP endpoint that gets called by the editor as part of your node's edit dialog.

In that context, as long as you include the `RED.auth.needsPermission` middleware, the `req.user` property should tell you who the user is calling the end point.

```auto
RED.httpAdmin.get("my-custom-node/do-something", RED.auth.needsPermission('XYZ.read'), function(req, res) {
   // req.user should identify the user.
});

```

---

_[View the full topic](https://discourse.nodered.org/t/get-logged-user-information-in-custom-node/50796)._
