accessControl completeBackup

Standard Security Audit Trail Finalization

Scénario de test & Cas d'usage

Business Context

A financial institution requires a snapshot of all access controls before applying a major security patch. The security team needs to ensure the backup of the 'Reference' caslib is formally marked as complete within a strict transaction block to guarantee data integrity for auditors.
About the Set : accessControl

Management of access rights and data security.

Discover all actions of accessControl
Data Preparation

Setup the session and assume superuser role to allow administrative actions.

Copied!
1 
2PROC CAS;
3 
4ACCESSCONTROL.assumeRole / adminRole='superuser';
5 
6 
7RUN;
8 

Étapes de réalisation

1
Initialize a transaction and create the backup for the specific Caslib.
Copied!
1PROC CAS;
2 ACCESSCONTROL.startTransaction RESULT=tx;
3 ACCESSCONTROL.createBackup / caslib='casuser' name='Audit_Backup_Q4' transactionId=tx.transId;
4 RUN;
2
Execute completeBackup to finalize the state before committing.
Copied!
1PROC CAS;
2 ACCESSCONTROL.completeBackup;
3 ACCESSCONTROL.commitTransaction / transactionId=tx.transId;
4 RUN;

Expected Result


The backup 'Audit_Backup_Q4' is successfully created and explicitly flagged as complete. The transaction commits without error, confirming the security snapshot is valid.