I want to query all pending approval Request to check if there's already an pending request for a specific object. I can create a security Role with the needed rights, but cannot assign it to the scheduled task. is there any otther possibility to check?

ago by (20 points)

1 Answer

ago by (16.5k points)
0 votes

Hello,

Do we understand correctly that you need to query pending approval requests using a PowerShell script executed in a scheduled task? If we do, there is no need to grant any permissions to a scheduled task. It is executed by the Adaxes service and already has the rights to view all approval requests by default. If this is not what you meant, please describe the required workflow in all the details with screenshots and live examples. You can post them here or send them to support@adaxes.com.

ago by (20 points)
0

Meanwhile i was able to solve this issue. I was using the example from the sdk description. But since I'm running in adaxes i can use $context to bind to the approvals.

Another question regarding approvals: If the Retention Period is reached, the request is just deleted. It doesn't change its status, right? To trigger an action i have to use something like this: https://scripts.adaxes.com/approvedeny-outdated-approval-requests correct?

ago by (16.5k points)
0

Hello,

Meanwhile i was able to solve this issue. I was using the example from the sdk description. But since I'm running in adaxes i can use $context to bind to the approvals.

Thank you for the confirmation, it is much appreciated.

Another question regarding approvals: If the Retention Period is reached, the request is just deleted. It doesn't change its status, right?

Yes, that is correct.

To trigger an action i have to use something like this: https://scripts.adaxes.com/approvedeny-outdated-approval-requests correct?

Yes, if you have a business rule triggering upon updating an approval request, you can use the mentioned script to trigger the rule.

Related questions

Similar to Powershell's "whatif"? I'd like to enable this scheduled task - But would like to confirm who will actually be affected before enabling this. Is there at least ... objects in the console log? I could run that before adding the 'modify' actions back.

asked Jun 25, 2024 by msinger (230 points)
0 votes
1 answer

On Approval Requests, in the web console, Initiator shows "N/A" instead of the custom command scheduled task. The admin console shows the custom command scheduled task though. Any way to fix that?

asked Jan 21, 2021 by mark.it.admin (2.3k points)
0 votes
1 answer

seting up a scheduled task to move users to thier correct OU. For some we can do this based on employee type and direct to a specific OU. For most of our users we will have to script this to move to the manager's OU.

asked Apr 12, 2023 by mightycabal (1.2k points)
0 votes
1 answer

Is there a way to have a Scheduled Task with 4 different condition? I want to create a scheduled task start every Monday and the condition see: The next Saturday of the week ... of the week is the fifth of the month then no action Thanks in advance, Simone

asked Jan 18, 2022 by Simone.Vailati (500 points)
0 votes
1 answer

Currently, when I disable a user account in Adaxes, the group memberships of the user remain intact. I'd like to automate the removal of group memberships such as distribution ... a list of groups/DL that the user was previously in and removed from. Thanks!

asked Nov 3, 2021 by jayden.ang (20 points)
0 votes
1 answer