A JavaScript code works when the administrator opens it, but when another user opens with another role, it does not execute, nor does it even give an error.
I searched but did not find any entries in any forum, this role of this user, had no privileges on the processes, then put user permission to read at the user level, and voila, the JS already works.
I share this in case anyone ever needs it.
*This post is locked for comments