There are situation when privilege assignment gets failed, say the target application was unavailable at the time of original privilege assignment. It is nice to have a job to re-attempt the failed provisioning at a later stage once the target is up or any provisioning flow is corrected.
Following are the detailed steps to have such job created
Create New -> Empty Job and name it as ‘Retry failed assignments’
Now include a ‘To Generic’ pass to the job
In the source tab fill the ‘Database’ and ‘SQL statement’ fields
uRetryPrivilegeAdd function retries a privilege assignment for a given entry.
// Main function: Recon
OutString = uRetryPrivilegeAdd(Par.get(“mcThisMSKEY”), Par.get(“mcOtherMSKEY”));
mcThisMSKEY – MSKey of the user.
mcOtherMSKEY – MSKey of the privilege.
OutString – Empty string or error message prefixed with !ERROR:.
This can be set as a periodic scheduled job that retries all failed privileges.