# provisioningTimeout Max limit

**URL:** <https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security\
**Created:** [September 11, 2024, 10:40am UTC](https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876 "2024-09-11T10:40:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sndppnyk](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sndppnyk](https://developer.sailpoint.com/discuss/u/sndppnyk)\
**Post date:** [September 11, 2024, 10:40am UTC](https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876/1 "2024-09-11T10:40:39Z")

</div>

We have a AD - After Create powershell script that updates few attributes in Azure AD after the account is created in AD. For this we have a retry logic in the script which will wait for the User account to be available in Azure AD before updating the required attributes. The AD to Azure sync runs every 30 mins. The powershell script runs fine and does its job.

For this, we have set the following timeout attribute in the source:  
“provisioningTimeout”: “600”,  
“IQServiceResponseTimeout”: “3600”,

1. We are trying to set provisioningTimeout = 3600 (60 mins) to avoid any internal sync issues. But the IDN source can set the value to “600” max. If we update any value more than 600, it defaults back to 600. This causes a timeout error while waiting for the AD-Azure sync to finish. Is there any option to update this value to 3600?

2. If not, can we implement this in a different way?

---

<div class="post-metadata">

**Author:** ![udayputta](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/udayputta/32/14195_2.png) [@udayputta](https://developer.sailpoint.com/discuss/u/udayputta)\
**Post date:** [September 11, 2024, 2:25pm UTC](https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876/2 "2024-09-11T14:25:18Z")

</div>

hi @sndppnyk

You can probably put a Start-Sleep wait time on your powershell. You also need to adjust your timeout attribute if you want to try this approach.

Thanks,  
Uday

---

<div class="post-metadata">

**Author:** ![sndppnyk](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sndppnyk](https://developer.sailpoint.com/discuss/u/sndppnyk)\
**Post date:** [September 11, 2024, 2:52pm UTC](https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876/3 "2024-09-11T14:52:33Z")

</div>

> [@sndppnyk](#):
>
> provisioningTimeout

This is already part of the powershell script and works as expected. The issue is with the AD source “provisioningTimeout” attribute. IDN marks the request as incomplete after 600 seconds.

How can we set the “provisioningTimeout” more than 600 seconds? The source attribute is getting default to 600 if we try to set any value above 600.

---

<div class="post-metadata">

**Author:** ![agutschow](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/agutschow/32/8543_2.png) [@agutschow](https://developer.sailpoint.com/discuss/u/agutschow)\
**Post date:** [September 11, 2024, 4:06pm UTC](https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876/4 "2024-09-11T16:06:21Z")

</div>

Another approach if you can use roles with membership criteria,

Role 1: Basic AD account with birthright entitlements

- ISC triggers create of AD account
- Azure sync occurs to create Entra account
- Aggregate EntraID

Role 2: Role to trigger additional entitlements  
In the membership criteria, use the Azure account and the specific attributes that you need to trigger the new role. Then in this role, add the access profile(s) with your additional entitlements.

Since you are triggering the second role based on the Azure account existing, you will always know that it is there before adding the additional entitlements.

---

<div class="post-metadata">

**Author:** ![sndppnyk](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sndppnyk](https://developer.sailpoint.com/discuss/u/sndppnyk)\
**Post date:** [September 11, 2024, 5:32pm UTC](https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876/5 "2024-09-11T17:32:55Z")

</div>

This is an option but the provisioning has to wait until the account is pulled as part of next Azure account aggregation.  
Other than updating Azure attributes, we are also updating ExchangeOnline attributes. So the script dependency cannot be avoided.

If the “provisioningTimeout” source attribute can be set to more than 600, this would be helpful and resolve the issue.  
Any idea how can we set this?  
Why is there a max value of 600 for “provisioningTimeout” source attribute?

---

<div class="post-metadata">

**Author:** ![IAMpdu](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/iampdu/32/2671_2.png) [@IAMpdu](https://developer.sailpoint.com/discuss/u/IAMpdu)\
**Post date:** [September 11, 2024, 6:39pm UTC](https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876/6 "2024-09-11T18:39:44Z")

</div>

Hello @sndppnyk , Did you wrote all the code inside Native rule or are you invoking another PS script from native rule?

PowerShell background jobs allow you to run scripts asynchronously in the background. You can start a background job with `Start-Job`

You can try to follow below approach -

1. Below code in after create native rule that will run the job

```auto
Write-Host "Prasad Started"

$job = Start-Job -ScriptBlock {
    & "C:\Prasad\myScript1.ps1"
}
Write-Host "Prasad Ended"

```

the Output of below code will be -

```auto
Prasad Started
Prasad Ended

```

---

<div class="post-metadata">

**Author:** ![sndppnyk](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sndppnyk](https://developer.sailpoint.com/discuss/u/sndppnyk)\
**Post date:** [September 12, 2024, 10:45am UTC](https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876/7 "2024-09-12T10:45:31Z")

</div>

> [@IAMpdu](#):
>
> `Start-Job`

Hi Prasad,

Have you tried to call Start-Job from the native rule? I tried to create a .ps1 file and it was not getting triggered with Start-Job.

While going through the documentation below, found the statement saying " **Creating an out-of-process background job with `Start-Job` is not supported in the scenario where PowerShell is being hosted in other applications, such as the PowerShell Azure Functions**."

> **[Start-Job (Microsoft.PowerShell.Core) - PowerShell](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/start-job?view=powershell-7.4)**
>
> The Start-Job cmdlet starts a PowerShell background job on the local computer. A PowerShell background job runs a command without interacting with the current session. When you start a background job, a job object returns immediately, even if the job...

So wanted to check if you have a working code of calling an external powershell script from native rule?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [November 11, 2024, 10:45am UTC](https://developer.sailpoint.com/discuss/t/provisioningtimeout-max-limit/80876/8 "2024-11-11T10:45:45Z")

</div>

Closed on November 11, 2024, 10:45am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
