Manage HCM Role Provisioning Rules
Purpose
Provide a controlled, cross-pillar method to export, validate, and approval-gate the import of the Manage HCM Role Provisioning Rules FSM setup task. Delegate transport and live import execution to the declared shared and core dependencies. Prepare user-requested rule changes against the supported template.
Export and move the FSM setup task Manage HCM Role Provisioning Rules only
through the declared dependency workflows. The catalog identity is task code
PER_MANAGE_HCM_ROLE_PROVISIONING_RULES; require a current catalog or live-task
lookup to confirm that its export/import flags remain supported before execution.
Scope and boundaries
- Support a task-level FSM CSV export and the subsequent import of either the exact export, a user-supplied fresh FSM archive for this task, or a modified copy of an export or a verified-template candidate. Revalidate every change.
- This task governs HCM role-provisioning rules. Do not substitute a Manage Job Roles archive or use this skill to create, update, or redesign job, abstract, duty, or data roles, role memberships, security profiles, or data security policies. Route individual role changes to Manage Job Roles or Manage Duties, and policy changes to Manage Data Security Policies. This skill accepts create, update, delete and redesign operations for provisioning rules.
- Do not call Fusion, OAuth, UCM, REST, FSM, or loader commands directly.
shared.setup-export.task-level-exportowns export;core.data-loaderowns every import preflight, upload, initiation, and monitoring route. - Treat a changed archive, source scope, target environment, or validation result as a new request that must pass all gates again.
Required preflight
- Resolve the project workspace, requested operation, source and target environments, and the exact role-provisioning-rule scope. Require source and target to be distinct for a migration request; require explicit confirmation for a same-environment restore.
- Confirm the exact task name and code with
shared.setup-export.task-level-exportand verify its currentCSVExportImportSupportedFlagisY. If the task is ambiguous, unavailable, or unsupported, record a catalog-mismatch diagnostic and stop. - Confirm the operator has Functional Setup Manager export access in the source and Data Loader import privileges in the target. Do not request or expose credentials, access tokens, or tenant secrets.
- Record the source/target identities, task code, scope, and a redacted execution plan in the project workspace before any side effect.
Export Manage HCM Role Provisioning Rules
- Route the export to
shared.setup-export.task-level-exportwith task nameManage HCM Role Provisioning Rules, task codePER_MANAGE_HCM_ROLE_PROVISIONING_RULES, the source environment, and project ID. - Let that skill perform task lookup, support-flag validation, export process creation, polling, download, and project export persistence. Do not substitute a template export for a data export.
- Preserve the returned ZIP unchanged. Register its path, SHA-256, process ID, task identity, source environment, and export timestamp as the export record.
- On an export timeout or failure, preserve the task code, process ID, last status, process-log reference, elapsed wait, and next-check path. Do not start another export process automatically.
Create, update, delete and redesign
Accept these operation requests for this task's own setup objects, including
user-specified individual changes. Prepare supported changes using the target's
FSM template and execute them through core.data-loader; do not reject a
request merely because the user does not already have an input archive.
Read FSM input preparation when preparing a change or helping a user understand the input. Obtain and safely extract the template, explain its files and required columns, map supplied business values, and prepare a separate candidate. Automatically authorize only the necessary template/spec export; retain Data Loader's validation and actual import approval workflow.
For deletion, verify the explicit supported action for the exact object or relationship. An omitted CSV row, blank value or unrelated REMOVE action is not whole-object deletion. If the task has no supported deletion contract, record that specific operation gap; do not impose a blanket prohibition on all individual changes or invent a browser/API execution route.
For update or redesign, establish existing keys, preserve unrelated values and show the intended changes. Intentional changes in the selected target are not same-environment restores. Apply restore confirmation only to an actual restore.
Template-first import preparation
- Unless the user explicitly overrides this sequence, export the task first and provide that export as the import template before asking for import content. Explain that the template establishes the supported archive and file structure; it is not approval to import.
- When the user provides an input file, compare it with the export template for file names, headers, column order, encoding, required values, and task-specific references. Help correct structural defects in a separate candidate file; preserve the supplied original and do not silently alter business values.
- Give the user a concise change summary and identify any unresolved values or references. Use the corrected file only after it conforms to the export structure and has been assembled into a new candidate archive using the supported archive shape. That candidate is a new artifact and must pass the validation and approval gates below.
- The user may override the export-first sequence, template choice, or proposed file corrections at any time. Honor that direction, while retaining the required task-identity, validation, and immediate import-approval gates.
Validate a fresh or modified archive for import
- Require a supplied archive to be a non-empty, readable FSM ZIP. Bind its
SHA-256 to task code
PER_MANAGE_HCM_ROLE_PROVISIONING_RULES, source provenance when known, and target environment. A modified export is a new source artifact, not a continuation of the original export validation. - Route setup-data validation to
shared.validation.setup-data-validatorand preserve the resulting validation evidence. Fail closed on archive-shape, task-identity, scope, catalog, environment, or privilege mismatch. - Do not alter, unpack-and-repack, merge, or otherwise transform the archive after validation. Any change invalidates the evidence and approval preview.
Import the validated archive
- Route the immutable validated archive to
core.data-loaderas an FSM, task-routed import. Provide the task context, target environment, archive SHA-256, and validation evidence. - Let
core.data-loadercomplete its required source and API validation and produce its immutable approval preview. This skill must not bypass or replace the Data Loader route with a direct FSM API, UCM upload, REST call, CSV utility, or browser action. - Present the exact target environment, task code, archive name and SHA-256, validation result, and expected impact. Stop before the first POST.
- Proceed only after the user gives a separate, immediate approval for that
immutable preview.
core.data-loaderrevalidates the archive and owns the upload, initiation, process monitoring, and diagnostics. - Do not retry an upload, initiation, import, overwrite, or replacement process without a fresh approval. Preserve returned request IDs, process-log references, and redacted diagnostics in the project workspace.
Failure handling
Classify failures as input validation, catalog mismatch, authorization, transport/environment, Fusion API, process timeout, process failed, artifact persistence, or approval blocker. Redact credentials, tokens, customer data, and sensitive security configuration. For any ambiguity or unsafe path, record the blocker and recommended next action, then stop.


