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 clipboard"requiredPermissions": {"enableUserInfo": true}
Since: v7.3.0
userId()
Read only Get the GUID of the plugin user
Since: v7.3.0
Example
Copied to your clipboardlet userId = require('uxp').userInfo.userId(); // Get the GUID of plugin userconsole.log(userId); // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855