Invoke-UAScript as system?

I have a script that rebuilds a table database on a schedule within UD. I also have a “refresh” button on the table, that uses Invoke-UAScript to run the script manually. Is there anyway to enable anyone to use that button? Right now only users with the script execution privileges can.

You can generate an app token for an account with the execute privileges and then use that token when calling Invoke-UAScript. It will use the privileges of the token rather than the user.

Is there a way to grant execute privileges to a user with out giving them access to the admin pages?

Not at the moment. With v2 we introduced a more granular RBAC system where we could implement something like this but it’s currently not possible.

1 Like