require('uxp').userInfo
Includes information about the user.
Add the below permission in your plugin's manifest.json
file to use this API.
Copied to your clipboard1"requiredPermissions": {2 "enableUserInfo": true3}
Since: v7.3.0
userId()
Read only Get the GUID of the plugin user
Since: v7.3.0
Example
Copied to your clipboard1let userId = require('uxp').userInfo.userId(); // Get the GUID of plugin user2console.log(userId); // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855