Scénario de test & Cas d'usage
Management of access rights and data security.
Discover all actions of accessControlCreation of multiple dummy tables with varying permissions to generate a complex ACL structure.
| 1 | PROC CAS; |
| 2 | caslib HR path='/cas/data/hr' dataSource={srcType='path'}; |
| 3 | TABLE.loadTable / caslib='casuser' path='cars.sashdat' casout={caslib='HR', name='Salaries'}; |
| 4 | ACCESSCONTROL.updSomeAcsTable / TABLE={caslib='HR', name='Salaries'}, acl={{permission='Select', principal='HR_Managers', principalType='group', grant=true}}; |
| 5 | RUN; |
| 1 | |
| 2 | PROC CAS; |
| 3 | |
| 4 | ACCESSCONTROL.assumeRole / adminRole='superuser'; |
| 5 | |
| 6 | |
| 7 | RUN; |
| 8 |
| 1 | |
| 2 | PROC CAS; |
| 3 | |
| 4 | ACCESSCONTROL.createBackup / tables=true; |
| 5 | |
| 6 | |
| 7 | RUN; |
| 8 |
| 1 | |
| 2 | PROC CAS; |
| 3 | |
| 4 | TABLE.fetch / TABLE={name='table_acs'}; |
| 5 | |
| 6 | |
| 7 | RUN; |
| 8 |
No files are written to disk. Instead, standard CAS tables (e.g., 'caslib_acs', 'table_acs') appear in the active caslib. The 'table.fetch' command displays the permissions set during the Data Prep phase.