accessControl checkOutObject

Shared Governance on Analytic Action Sets

Scénario de test & Cas d'usage

Business Context

During a regulatory compliance audit, the 'sampling' action set must be kept stable. The auditor wants to ensure that no administrator creates an EXCLUSIVE lock (which would imply a major update or removal of the action set) during the audit period, while still allowing other users to utilize the action set normally (Shared).
About the Set : accessControl

Management of access rights and data security.

Discover all actions of accessControl
Data Preparation

Ensure the sampling action set is loaded.

Copied!
1 
2PROC CAS;
3BUILTINS.LOADACTIONSET / actionSet='sampling';
4 
5RUN;
6 

Étapes de réalisation

1
Start the audit transaction.
Copied!
1PROC CAS; ACCESSCONTROL.startTransaction; RUN;
2
Apply a SHARED checkout on the Action Set. This blocks any 'EXCLUSIVE' requests from others.
Copied!
1 
2PROC CAS;
3ACCESSCONTROL.checkOutObject / checkOutType='SHARED', objectSelector={objType='ACTIONSET', actionSet='sampling'};
4 
5RUN;
6 
3
Run an audit check (simulated) and release the lock.
Copied!
1 
2PROC CAS;
3/* Audit logic here */ ACCESSCONTROL.whatIsEffective / objectSelector={objType='ACTIONSET', actionSet='sampling'} principal='sasuser';
4ACCESSCONTROL.commitTransaction;
5 
6RUN;
7 

Expected Result


The 'sampling' action set is placed in SHARED mode. Normal operations continue, but any attempt by another session to gain EXCLUSIVE control is blocked until the transaction ends.