<?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: How can I create libraries with the same name for Multiple User id's in the SMC. in Architecture</title>
    <link>https://communities.sas.com/t5/Architecture/How-can-I-create-libraries-with-the-same-name-for-Multiple-User/m-p/906370#M447</link>
    <description>&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;proposes could work but you would end-up with multiple metadata library definitions that all have the same metadata name and libref. For any user with some sort of admin rights that provide read access to more than one of these library definitions the result will still be "random" which library metadata definition will get picked. I consider such duplicates in SAS Metadata as not recommended and it created issues for me in the past for example when using SAS DI Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you could do instead:&lt;/P&gt;
&lt;P&gt;1. Define the library in metadata once with a dummy pathname and as pre-assigned (pre-assigned so SAS DIS doesn't create the libname statement when deploying the code).&lt;/P&gt;
&lt;P&gt;2. Add logic to the the usermods autoexec where you issue a libname statement with a path depending on the user who invokes the SAS session. You could of course in this autoexec syntax also query SAS Metadata (or OS) to determine to which group a user belongs and then use a path based on group membership and not individual user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The libname statement in the autoexec will overwrite the libname defined in SAS Metadata with the same libref.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 05:14:24 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2023-12-06T05:14:24Z</dc:date>
    <item>
      <title>How can I create libraries with the same name for Multiple User id's in the SMC.</title>
      <link>https://communities.sas.com/t5/Architecture/How-can-I-create-libraries-with-the-same-name-for-Multiple-User/m-p/906203#M445</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Me and my teammates are trying to create Libraries for two different user IDs, for eg: A and B.&lt;/P&gt;&lt;P&gt;We are doing this in the SAS Management Console. We want the names of all the Libraries in these respective IDs to be the same, but the data is different for A and B. We had this setup before but now it is lost. Even after giving different file paths, we are getting the same data as in 'A' to all the other IDs.&lt;BR /&gt;&lt;BR /&gt;Why is it not working, can someone help?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 08:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/How-can-I-create-libraries-with-the-same-name-for-Multiple-User/m-p/906203#M445</guid>
      <dc:creator>aman_rai02</dc:creator>
      <dc:date>2023-12-05T08:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create libraries with the same name for Multiple User id's in the SMC.</title>
      <link>https://communities.sas.com/t5/Architecture/How-can-I-create-libraries-with-the-same-name-for-Multiple-User/m-p/906235#M446</link>
      <description>It sounds like both user A and B have ReadMetadata permission on the library defined for user A, so they are all assigning the library for user A. If you modify the Metadata permissions such that user A only has ReadMetadata permission on the library for themselves and none of the other libraries, and similarly for user B, they should assign as expected.</description>
      <pubDate>Tue, 05 Dec 2023 14:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/How-can-I-create-libraries-with-the-same-name-for-Multiple-User/m-p/906235#M446</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-12-05T14:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create libraries with the same name for Multiple User id's in the SMC.</title>
      <link>https://communities.sas.com/t5/Architecture/How-can-I-create-libraries-with-the-same-name-for-Multiple-User/m-p/906370#M447</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;proposes could work but you would end-up with multiple metadata library definitions that all have the same metadata name and libref. For any user with some sort of admin rights that provide read access to more than one of these library definitions the result will still be "random" which library metadata definition will get picked. I consider such duplicates in SAS Metadata as not recommended and it created issues for me in the past for example when using SAS DI Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you could do instead:&lt;/P&gt;
&lt;P&gt;1. Define the library in metadata once with a dummy pathname and as pre-assigned (pre-assigned so SAS DIS doesn't create the libname statement when deploying the code).&lt;/P&gt;
&lt;P&gt;2. Add logic to the the usermods autoexec where you issue a libname statement with a path depending on the user who invokes the SAS session. You could of course in this autoexec syntax also query SAS Metadata (or OS) to determine to which group a user belongs and then use a path based on group membership and not individual user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The libname statement in the autoexec will overwrite the libname defined in SAS Metadata with the same libref.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 05:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/How-can-I-create-libraries-with-the-same-name-for-Multiple-User/m-p/906370#M447</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-12-06T05:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create libraries with the same name for Multiple User id's in the SMC.</title>
      <link>https://communities.sas.com/t5/Architecture/How-can-I-create-libraries-with-the-same-name-for-Multiple-User/m-p/936586#M473</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/460495"&gt;@aman_rai02&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;As I understand it, you are using path based libraries. Make sure permissions particularly write permissions are enforced at OS level regardless of the approach that is being followed to create libraries.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 13:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/How-can-I-create-libraries-with-the-same-name-for-Multiple-User/m-p/936586#M473</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2024-07-22T13:51:04Z</dc:date>
    </item>
  </channel>
</rss>

