<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS Viya 3.5 - CAS in-memory table permissions persistence in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-3-5-CAS-in-memory-table-permissions-persistence/m-p/906701#M27650</link>
    <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13766"&gt;@EyalGonen&lt;/a&gt;, as I understand it the name-based control is still stored, so if a table with the same name is loaded to the same caslib, the permissions would still be present. It is tied to the name though and not the data, so if you were to load the data with a different name, the controls would not apply. Similarly if you loaded different data with the same name.</description>
    <pubDate>Thu, 07 Dec 2023 14:04:10 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2023-12-07T14:04:10Z</dc:date>
    <item>
      <title>SAS Viya 3.5 - CAS in-memory table permissions persistence</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-3-5-CAS-in-memory-table-permissions-persistence/m-p/905092#M27599</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was sure that permissions set &lt;EM&gt;directly&lt;/EM&gt; on an &lt;EM&gt;in-memory&lt;/EM&gt; CAS table (not on the ".sashdat" file) are not persistent across table unload and re-load actions but to my surprise testing this showed that the CAS permissions were preserved across unload/load of the in-memory table. I am wondering if my testing is perhaps wrong or maybe this is the correct behavior.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, here is my test code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* load and promote table without saving it as sashdat file */&lt;BR /&gt;&lt;BR /&gt;data samples.class(promote=yes);
set sashelp.class;
run;
&lt;BR /&gt;/* set permissions directly on the in-memory table */
proc cas;
	session casauto;
	accessControl.assumeRole / adminRole="superuser"; 
	accessControl.updSomeAcsTable /
	  acs={   
		{caslib="samples",
		 table="class",
		 identity="gonen",
		 identityType="User",
		 permType="Grant",
		 permission="Select",
		 filter="name='SUB::SAS.Userid'"}};
run;quit;&lt;BR /&gt;&lt;BR /&gt;/* unload table */
proc casutil; 
 droptable casdata="class" incaslib="samples" ;
run;quit;
 
/* load again and check permissions and see they are preserved */
data samples.class(promote=yes);
set sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Nov 2023 07:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-3-5-CAS-in-memory-table-permissions-persistence/m-p/905092#M27599</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2023-11-29T07:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya 3.5 - CAS in-memory table permissions persistence</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-3-5-CAS-in-memory-table-permissions-persistence/m-p/905231#M27606</link>
      <description>I think you'd need to load the source table into a different caslib (cross-caslib) to trigger the name based control, otherwise CAS will set the permission on the source as well.&lt;BR /&gt;&lt;BR /&gt;Creation of Name-Based Controls&lt;BR /&gt;&lt;BR /&gt;In general, each table-level control that you set is tied to a source file for one of the following reasons:&lt;BR /&gt;&lt;BR /&gt;    - When you set the control, you specify or select a source file (for example, cars.sashdat).&lt;BR /&gt;    - When you set the control, you specify or select an in-memory table (for example, CARS), and CAS persists the control to the corresponding source file (for example, cars.sashdat).&lt;BR /&gt;&lt;BR /&gt;The exception, in which table-level controls are name-based, occurs in the following circumstances:&lt;BR /&gt;&lt;BR /&gt;    - You set controls on an in-memory table that has no corresponding source file.&lt;BR /&gt;    - You set controls on an in-memory table that is disconnected from its source file (cross-caslib data).&lt;BR /&gt;&lt;BR /&gt;Source: Name-Based Access Controls&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/calcdc/3.5/calauthzcas/n1bf0cwn6ae85gn1b64x2j0czu24.htm#p0ic74y2q3tobrn13d34ux1tppi3" target="_blank"&gt;https://go.documentation.sas.com/doc/en/calcdc/3.5/calauthzcas/n1bf0cwn6ae85gn1b64x2j0czu24.htm#p0ic74y2q3tobrn13d34ux1tppi3&lt;/A&gt;</description>
      <pubDate>Wed, 29 Nov 2023 19:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-3-5-CAS-in-memory-table-permissions-persistence/m-p/905231#M27606</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-11-29T19:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya 3.5 - CAS in-memory table permissions persistence</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-3-5-CAS-in-memory-table-permissions-persistence/m-p/906648#M27647</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply! My question was about the persistence of name-based controls assigned directly to in-memory tables with no source file. I was sure these controls are volatile in the sense that they persist as long as the in-memory table is loaded to CAS and I thought that once the in-memory table was unloaded then all the name-based controls applied directly to it were lost.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the test code I sent in my previous post, I loaded a SAS dataset &lt;EM&gt;directly&lt;/EM&gt; to CAS &lt;EM&gt;without&lt;/EM&gt; saving it as a "sashdat" file so there is no "source file" for this CAS in-memory table. Then I set CAS permissions directly on the in-memory CAS table, and then unloaded the table and reloaded it again from the same SAS dataset. To my surprise it seems like these CAS permissions are NOT lost when unloading the in-memory table and they persisted across the unload/load process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So just to be sure - do name-based controls assigned directly to in-memory tables with no backing source file actually persist after unloading the associated in-memory table as my tests reveal?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 05:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-3-5-CAS-in-memory-table-permissions-persistence/m-p/906648#M27647</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2023-12-07T05:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya 3.5 - CAS in-memory table permissions persistence</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-3-5-CAS-in-memory-table-permissions-persistence/m-p/906701#M27650</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13766"&gt;@EyalGonen&lt;/a&gt;, as I understand it the name-based control is still stored, so if a table with the same name is loaded to the same caslib, the permissions would still be present. It is tied to the name though and not the data, so if you were to load the data with a different name, the controls would not apply. Similarly if you loaded different data with the same name.</description>
      <pubDate>Thu, 07 Dec 2023 14:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-3-5-CAS-in-memory-table-permissions-persistence/m-p/906701#M27650</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-12-07T14:04:10Z</dc:date>
    </item>
  </channel>
</rss>

