<?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 Pre-assign libnames depending on user permissions as in SAS 9.4 Metadata in Moving to SAS Viya</title>
    <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Pre-assign-libnames-depending-on-user-permissions-as-in-SAS-9-4/m-p/956993#M146</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS 9.4 we have all our preassigned libraries assigned and stored in the metadata; the access to the libnames is then managed by the metadata which means a user has access or not to the folder where the libname was stored he would have or not the libname pre-assigned.&lt;/P&gt;
&lt;P&gt;I seem to have heard that this is one of the most required features by SAS Viya Admins. My question is: has any of you found a workaround for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 16:06:18 GMT</pubDate>
    <dc:creator>a_SAS_sin</dc:creator>
    <dc:date>2025-01-23T16:06:18Z</dc:date>
    <item>
      <title>Pre-assign libnames depending on user permissions as in SAS 9.4 Metadata</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Pre-assign-libnames-depending-on-user-permissions-as-in-SAS-9-4/m-p/956993#M146</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS 9.4 we have all our preassigned libraries assigned and stored in the metadata; the access to the libnames is then managed by the metadata which means a user has access or not to the folder where the libname was stored he would have or not the libname pre-assigned.&lt;/P&gt;
&lt;P&gt;I seem to have heard that this is one of the most required features by SAS Viya Admins. My question is: has any of you found a workaround for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 16:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/Pre-assign-libnames-depending-on-user-permissions-as-in-SAS-9-4/m-p/956993#M146</guid>
      <dc:creator>a_SAS_sin</dc:creator>
      <dc:date>2025-01-23T16:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-assign libnames depending on user permissions as in SAS 9.4 Metadata</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Pre-assign-libnames-depending-on-user-permissions-as-in-SAS-9-4/m-p/960000#M148</link>
      <description>&lt;P&gt;Given that there are no library objects in SAS VIya (aside from CASLIBS in CAS sessions), the Viya General Authorization system isn't able to help with library permissions or preassignment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However youu could look at creating appropriate compute contexts for these purposes and permitting your users/groups to these contexts.&amp;nbsp; &amp;nbsp;See&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/calsrvpgm/latest/n00001viyaprgmsrvs00000admin.htm" target="_blank"&gt;SAS Help Center: SAS Compute: Server, Service, and Contexts&lt;/A&gt;&amp;nbsp;and the section on the&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/calsrvpgm/latest/n1jb3fo13t6cdbn16dv8dtfbox7v.htm#n04afpu9rtza1bn1hem0ck2hd9z2" target="_self"&gt;sas.compute.server: autoexec_code&lt;/A&gt;&amp;nbsp;configuration instance.&amp;nbsp; If you truly needed highly-specific code, I've seen situations where PROC HTTP was used in the autoexec to determine the groups the user is in, and assign the librefs based upon that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Carl Sommer - SAS Technical Support&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 02:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/Pre-assign-libnames-depending-on-user-permissions-as-in-SAS-9-4/m-p/960000#M148</guid>
      <dc:creator>carl_sommer</dc:creator>
      <dc:date>2025-02-23T02:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-assign libnames depending on user permissions as in SAS 9.4 Metadata</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Pre-assign-libnames-depending-on-user-permissions-as-in-SAS-9-4/m-p/960201#M149</link>
      <description>&lt;P&gt;And now I feel like I should have also said this instead.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the Resources tab when you edit a compute context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carl_sommer_0-1740535211463.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104937iEA6302BE1CE0CC91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carl_sommer_0-1740535211463.png" alt="carl_sommer_0-1740535211463.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Reference&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/sasadmincdc/v_061/evfun/p1dkdadd9rkbmdn1fpv562l2p5vy.htm" target="_blank" rel="noopener"&gt;SAS Help Center: Contexts Page&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;A better reference / writeup:&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Managing-Connections-to-Data-Sources-and-SAS-Libraries-for/ta-p/825138" target="_blank"&gt;Managing Connections to Data Sources and SAS Libraries for Compute Sessions in SAS Viya&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Carl Sommer - SAS Technical Support&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 02:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/Pre-assign-libnames-depending-on-user-permissions-as-in-SAS-9-4/m-p/960201#M149</guid>
      <dc:creator>carl_sommer</dc:creator>
      <dc:date>2025-02-26T02:06:02Z</dc:date>
    </item>
  </channel>
</rss>

