Scénario de test & Cas d'usage
Management of access rights and data security.
Discover all actions of accessControlEnsure the sampling action set is loaded.
| 1 | |
| 2 | PROC CAS; |
| 3 | BUILTINS.LOADACTIONSET / actionSet='sampling'; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | PROC CAS; ACCESSCONTROL.startTransaction; RUN; |
| 1 | |
| 2 | PROC CAS; |
| 3 | ACCESSCONTROL.checkOutObject / checkOutType='SHARED', objectSelector={objType='ACTIONSET', actionSet='sampling'}; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | /* Audit logic here */ ACCESSCONTROL.whatIsEffective / objectSelector={objType='ACTIONSET', actionSet='sampling'} principal='sasuser'; |
| 4 | ACCESSCONTROL.commitTransaction; |
| 5 | |
| 6 | RUN; |
| 7 |
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.