Forum Discussion
cw_meg01
06-21-2022Data Storage
Try prism.user for information related to the user (id, group, etc.). The id is also available when the widget is ready (widget.userId).
widget.on('ready', function(widget){
var userInfo1 = prism.user; // feel free to add the name of the attribute you are looking for once you identify it
var userInfo2 = widget.userId;
});
Rajesh
06-22-2022Cloud Apps
Thanks for your response. It appears to be a Widget script, but I want to access these variables in the Model (SQL Query) any thoughts on this?