CPM: When an account has more than one usage what determines the order in which they are managed? Is this configurable?

CPM: When an account has more than one usage what determines the order in which they are managed? Is this configurable?

85
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 12:59 PM


Objective


When an account has more than one usage what determines the order in which they are managed? Is this configurable? 

Environment


11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)

Procedure


If the usages are different types or the same type assigned to different Service platforms, IE Windows Service vs Windows Task, then the management of the usages will be determined by the Platform without respect to each other.
If the usages are assigned to the same Service Platform, the order is hard-coded, and cannot be changed; however, the order can be utilized in to facilitate setting restart priorities.
The hard coded order is set to sort Ascending by SafeID, FolderID, FileName, then an internal FileName
SafeID and FolderID are not the Safe and Folder Name. They are values that are generated when the safe and folder are created, so they cannot be relied upon for the order 
The FileName; however, can be used to successfully prioritize the usage processing order for all usages that exist in the same folder of the same safe.
Note that the sort order is Alphabetical, not numerical, so if using numbers, 1 and 10 will end up beside each other in the following list (1,10,2,3,4,5,6,7,8,9). Therefore it would make the most sense to use the alphabet for ordering. (a,b,c,d,etc)

Example:
SchedTask Usage
Task Name: SchTask1
Name: Operating System-WinServerLocal-task-SchedTask-10.0.116.57-SchTask1

Task Name: SchTask2
Name: Operating System-WinServerLocal-task-SchedTask-10.0.116.57-SchTask2 

Like this SchTask1 will process first, then SchTask2
To make SchTask2 process first add something like a_ to the beginning of SchTask2
Task Name: SchTask2
Name: a_Operating System-WinServerLocal-task-SchedTask-10.0.116.57-SchTask2 

Then for consistency, I would also add b_ to the beginning of SchTask1
Task Name: SchTask1
Name: b_Operating System-WinServerLocal-task-SchedTask-10.0.116.57-SchTask1

This will result in SchTask2 processing first, then SchTask1.
***Note: When prioritizing you must also consider concurrency. By default, platforms are configured to allow 3 concurrent connections. This means that in the above example, even though SchTask2 is technically being processed first, the system will not wait until it is complete to start processing SchTask1 and even in the logs SchTask1 could still show up as Starting Password Handler before SchTask2. If you need SchTask2 to truly be completed first, you need to set MaxConcurrentConnections to 1 in the platform configuration so that the tasks are processed serially. This will also have a dramatic impact on the speed performance of the platform. If doing this it would make the most sense to duplicate the platform being used for this purpose so that it does not affect other Usages using the platform that do not require prioritization.

***Note: accounts that were found in more than one search get higher priority. This is when CPM searches for accounts to manage for the platform. 
The find reasons are:

ResetImmediately
OneTime
Failure
Mark failure (specific to usages/group – when the cpm marks usages/members it first sets the mark failure value in the failure f.c. so that in case it crashes it can find it and know to mark all usages again.)


Additional Information


Details

Q:

When an account has more than one usage what determines the order in which they are managed? Is this configurable? 
 

A:

 

  • If the usages are different types or the same type assigned to different Service platforms, IE Windows Service vs Windows Task, then the management of the usages will be determined by the Platform without respect to each other.
  • If the usages are assigned to the same Service Platform, the order is hard coded, and cannot be changed; however, the order can be utilized in to facilitate setting restart priorities.
    • The hard coded order is set to sort Ascending by SafeID, FolderID, FileName, then an internal FileName
    • SafeID and FolderID are not the Safe and Folder Name. They are values that are generated when the safe and folder are created, so they cannot be relied upon for the order 
    • The FileName; however, can be used to successfully prioritized the usage processing order for all usages that exist in the same folder of the same safe.
    • Note that the sort order is Alphabetical, not numerical, so if using numbers, 1 and 10 will end up beside each other in the following list (1,10,2,3,4,5,6,7,8,9). Therefore it would make most sense to use the alphabet for ordering. (a,b,c,d,etc)
Example:
SchedTask Usage

Task Name: SchTask1
Name: Operating System-WinServerLocal-task-SchedTask-10.0.116.57-SchTask1

Task Name: SchTask2
Name: Operating System-WinServerLocal-task-SchedTask-10.0.116.57-SchTask2 

 

  • Like this SchTask1 will process first, then SchTask2
  • To make SchTask2 process first add something like a_ to the beginning of SchTask2

Task Name: SchTask2
Name: a_Operating System-WinServerLocal-task-SchedTask-10.0.116.57-SchTask2 

 

  • Then for consistency, I would also add b_ to the beginning of SchTask1

Task Name: SchTask1
Name: b_Operating System-WinServerLocal-task-SchedTask-10.0.116.57-SchTask1

 

  • This will result in SchTask2 processing first, then SchTask1.
***Note: When prioritizing you must also consider concurrency. By default platforms are configured to allow 3 concurrent connections. This means that in the above example, even though SchTask2 is technically being processed first, the system will not wait until it is complete to start processing SchTask1 and even in the logs SchTask1 could still show up as Starting Password Handler before SchTask2. If you need SchTask2 to truely be completed first, you need to set MaxConcurrentConnections to 1 in the platform configuration so that the tasks are processed serially. This will also have a dramatic impact on the speed performance of the platform. If doing this it would make the most sense to duplicate the platform being used for this purpose so that it does not affect other Usages using the platform that do not require prioritization.
 

***Note: accounts that were found in more than one search get higher priority. This is when CPM searches for accounts to manage for the platform. 
The find reasons are:

  • ResetImmediately
  • OneTime
  • Failure
  • Mark failure (specific to usages/group – when the cpm marks usages/members it first sets the mark failure value in the failure f.c. so that in case it crashes it can find it and know to mark all usages again.)



Actions
  • Print
  • Copy Link

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