Generating Scripts to Load Actor Information

The secadm generate commands allow you to create scripts that can be run to assign roles to actors and to add actor contexts. You should consider the scripts that are created to be merely templates that must be edited. The script files are created based on the current data in your system and so running them without editing them first will result in numerous errors that the records already exist.

For example, if you run the command to create an actor context script by key field, the script will contain two lines for each user who has a context value assigned for that key field. The two lines will be commands will be similar to the following:

actor ctxproperty add prodhcm HROrganization false true
actor context add user1 prodhcm HROrganization 1000

You can choose to edit such entries in several ways. You may want to change the context property so that the isPervasive and userModifiable flags are both true. In that case, you would edit that line to be:

actor ctxproperty update prodhcm HROrganization true true

The second line you may want to change so that it references another user who has no context value yet for HROrganization or so that it references a different value for the context property. You could also copy and paste the line numerous times and edit the user names (actor), so that many users can be assigned a context value.