
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 04:14 PM - edited ‎06-04-2024 06:59 PM
Hello everyone,
I need to execute a script that inserts into the sys_user_grmember table. However, since the Application Administration is active, I need to run it with the admin user of the application. I tried running it via Scheduled Job with this user, and it worked well, but I can't seem to update the parameters.
PS: I am aware of SncTriggerSynchronizer but not sure how to pass the parameter.
Does anyone have any suggestions?
Thanks.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2024 05:07 PM
To solve my issue, I created a new role with the Application Administration field set to true and assigned this role to the user who needed to run the scripts. This allowed the script to be executed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2024 04:34 AM
Hi,
In my case, I need to run the script with a specific user, and the scheduled job is capable of doing that. However, this script needs to receive parameters dynamically
Do you have any other suggestions for running a script with a specific user?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2024 04:37 AM
I don't really understand your question as it's not how Scheduled Jobs work. What are you trying to achieve with this script?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2024 04:58 AM
Basically, I need to dynamically insert a record into the sys_user_grmember table. However, since Application Administration is enabled in my scoped application, I can only do this by running the script with the application admin user, so I cannot run the script with the system user
I know it's not the expected behavior of the scheduled job, but so far it's the only way I've found to run a script with a specific user

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2024 05:07 PM
To solve my issue, I created a new role with the Application Administration field set to true and assigned this role to the user who needed to run the scripts. This allowed the script to be executed.