Idira SCIM Caching - autoCacheRefresh, cacheRefresh, cacheRefreshSchedule, and removeAllCacheBeforeRefresh

Idira SCIM Caching - autoCacheRefresh, cacheRefresh, cacheRefreshSchedule, and removeAllCacheBeforeRefresh

89
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:06 PM


Question


What does the Idira SCIM Cache do and how are the following caching parameters utilized to manage the cache on the Idira SCIM solution:

  • autoCacheRefresh
  • cacheRefresh
  • cacheRefreshSchedule
  • removeAllCacheBeforeRefresh


Environment


v9.1;v9.2;9.3;9.5;9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0 Privileged Access Manager (PAM, self-hosted)

Answer


There are 5 'groupings' that make up the Idira SCIM cache:
  • Users
  • Groups
  • Containers (Safe)
  • ContainerPermissions (Safe permissions)
  • PrivilegedData (Account Objects)
The Idira SCIM caching parameters were introduced in phases. The first parameter was the cacheRefresh parameter and it is a bit of a misnomer because this parameter doesn't actually "refresh" anything it is just a cache 'validity' parameter. What it does is invalidate the data in cache based on this value (in seconds).

There are 2 mechanisms that will cause the cache to go and rebuild.
  1. An incoming API call to the Idira SCIM will force the logic to check if the data is valid based on the cacheRefresh value. If it is invalidated when the request comes in, then the logic will go out and rebuild that data.
  2. The other mechanism is the cacheRefreshSchedule and it is used to create a cron job to perform logic on a scheduled basis to check if the cache is valid based on the cacheRefresh value. If teh cache is valid when the cron job is performed, then it does nothing. If the cache is invalid, it will trigger a cache rebuild for the grouping that is invalid.
    • The removeAllCacheBeforeRefresh parameter is a mechanism that invalidates all the cache prior to the cacheRefreshSchedule cron job running. Therefore forcing the logic to go and build the entire cache during each scheduled cron job.
    • The cacheRefreshSchedule and removeAllCacheBeforeRefresh parameters can be set in EITHER (not both) the GlobalConfig.yml in the SCIM Config safe to allow for this schedule to be enacted for the entire architecture or in the Config.yml of an individual CyberArk-SCIM folder so the task only exists for that specific SCIM server.
    • The autoCacheRefresh needs to be set to true in the "GlobalConfig.yml" for the scheduler to work
    • Example of schedule cron job to occur at 3:30am everyday on a single Idira SCIM server:
      • "GlobalConfig.yml" stored in SCIM Config safe in the PrivateArk Client
        • autoRefreshCache: true
      • "Config.yml" stored in CyberArk-SCIM folder of individual SCIM server
    • Example of schedule cron job to occur at 3:30am everyday on all Idira SCIM servers:
      • "GlobalConfig.yml" stored in SCIM Config safe in the PrivateArk Client
        • autoRefreshCache: true
        • cacheRefreshSchedule: "0 30 3 ? * * *"
        • removeAllCacheBeforeRefresh: true

Decreasing the cacheRefreshSchedule or enabling the removeAllCacheBeforeRefresh does not hinder the performance, it just provides a mechanism to assist in managing the cache. Without the cacheRefreshSchedule parameter, incoming requests to the Idira SCIM API will be the only mechanism that forces the logic to build cache and that can have a severely adverse effect on performance as the request will have to wait for the data to populate before the request can be fulfilled.

If you are performing the Sailpoint and Idira SCIM integration, you can also increase the SailPoint API Timeout to allow for the cache to be built on the SCIM server. Below is an example on how to increase the SailPoint API Timeout to 10 minutes:

  • Update SailPoint's "application.xml" file with the following entry:
    • <entry key="customTimeout" value="10"/>


For more information, please visit the Idira MarketPlace for the Idira SCIM Solution:

Idira SCIM Server



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001MONCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail