Trying to get GUID - works fine when loading plugin from UXP Dev tool, does not work when loading plugin with ps closed

Just trying to read/use

require(‘uxp’).userInfo.userId()

If I load the plugin through the UXP tool or with Photoshop open, it works fine. If I install the plugin with Photoshop closed, it just returns ‘’
If I disable and enable the plugin, it works (because Photoshop is open).

I saw this Plugin doesn’t work if installed… and tried using both ‘startup’ and ‘use’ for ‘loadEvent’ with no difference in results.

I’m guessing I’m missing something that’s preventing the require(‘uxp’) load or order, but even if I call that afterwards using a button, I get the same results (it doesn’t work, returns just a blank). I don’t think it’s a permission issue since it works for me if I load the plugin with Photoshop open/through UXP tool?

Does not work in some older PS versions. I reported this and it was fixed.

I’m using photoshop 26.2 and my issue isn’t with it working or not, just when it works. It works if I load the plugin after photoshop is open or through the UXP developer tools. It does not work if I install the plugin and then open Photoshop. It also does not work then if I quit and open photoshop again. I have to have a conflict somewhere with how it’s loading but I’m not sure.

I’ll troubleshoot more today and report back if I find anything.

1 Like

as a hacky fix, I’m just doing a reload on the panel until the userId populates. That seems to be working without issue