<?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: creating SAS Group in Metadata - programmatically in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/487170#M13914</link>
    <description>&lt;P&gt;I would recommend backing up your metadata before you do any changes programmatically, just in case something goes wrong. Is this a learning exercise or is it something you will continue to do regularly? I would only see this as a worthwhile approach if you need to do a lot of metadata changes.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 20:07:14 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-08-15T20:07:14Z</dc:date>
    <item>
      <title>creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/486629#M13905</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to create SAS User Group in SMC (9.4) - Programmatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sakthi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 12:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/486629#M13905</guid>
      <dc:creator>SSA1</dc:creator>
      <dc:date>2018-08-14T12:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/486633#M13906</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/96247"&gt;@SSA1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check these documents, you have to use a combination of METADATA_NEWOBJ &amp;amp; METADATA_SETASSN functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS® 9.4 Language Interfaces to Metadata -&amp;gt; METADATA_NEWOBJ Function&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p0ckrfx4pm9pj7n1x3x4e9ddx4cw.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;https://go.documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p0ckrfx4pm9pj7n1x3x4e9ddx4cw.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS® 9.4 Language Interfaces to Metadata -&amp;gt; METADATA_SETASSN Function&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p1pt2ddn2xhmaen1p5whdq58ithh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;https://go.documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p1pt2ddn2xhmaen1p5whdq58ithh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a description of type "Group": SAS(R) 9.4 Metadata Model: Reference -&amp;gt; Group&lt;BR /&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/omamodref/67417/HTML/default/viewer.htm#group.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/omamodref/67417/HTML/default/viewer.htm#group.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 12:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/486633#M13906</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-08-14T12:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/486635#M13907</link>
      <description>&lt;P&gt;What is your use case?&lt;/P&gt;
&lt;P&gt;Sometimes it's better wit a data driven approach. Then you could use the %mdu-family of macros, which uses a canonical data model as interface.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=n0l2hp5m00a1z2n1b598q4pknfih.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=n0l2hp5m00a1z2n1b598q4pknfih.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 12:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/486635#M13907</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-08-14T12:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/486968#M13913</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt; mentioned the %mdu* macros.&lt;BR /&gt;This is likely going to be the simplest method.&lt;BR /&gt;&lt;BR /&gt;Run %mduextr to extract the current metadata users and groups into canonical tables. Make your modifications to the groups you want in those tables. Then load it back in.&lt;BR /&gt;3.</description>
      <pubDate>Wed, 15 Aug 2018 12:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/486968#M13913</guid>
      <dc:creator>SimonDawson</dc:creator>
      <dc:date>2018-08-15T12:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/487170#M13914</link>
      <description>&lt;P&gt;I would recommend backing up your metadata before you do any changes programmatically, just in case something goes wrong. Is this a learning exercise or is it something you will continue to do regularly? I would only see this as a worthwhile approach if you need to do a lot of metadata changes.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 20:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/487170#M13914</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-08-15T20:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/610665#M17830</link>
      <description>&lt;P&gt;Hi Simon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also wanted to add a specific group for a secured library datasets. I have already created the secure library successfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also ran&amp;nbsp;%mduextr(libref=MD1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also got N number of canonical tables, now I am just confused in which of those canonical tables I need to add the specific group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like, I need to run an insert into query for any one of that canonical table or what exactly should be taken care of I just wanted to know. Can you please help me if possible taking out few moments of your time!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because I also want to know suppose I am able to add the group at one point of time, but after that can we give the permissions of read,write or execute programmatically ?? Or for permissions we need to touch the SMC to do that manually!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help will be really appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks....&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 11:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/610665#M17830</guid>
      <dc:creator>rajdeep</dc:creator>
      <dc:date>2019-12-10T11:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/610762#M17832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A id="link_33" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976" target="_self"&gt;SASKiwi&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Can you please help me to add a Group for a secured library datasets programatically?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Your help will be really helpful for me.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;I got the GRPMEMS table after running the&amp;nbsp;%mduextr macro and inside that I got grpkeyID and MemkeyID. If I add a new row suppose in that table with a unique grpkeyID and MemkeyID will it be update the meatdata?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;I am just wondering how I will find the unique key for new Group and besides to GRPMEMS table what other tables need to be updated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Please help if possible. Thank in advance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 16:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/610762#M17832</guid>
      <dc:creator>rajdeep</dc:creator>
      <dc:date>2019-12-10T16:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/610804#M17833</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13220"&gt;@rajdeep&lt;/a&gt;&amp;nbsp;- This is not a straightforward process and it takes hours of development and careful testing. If this is a one-off requirement then just do it manually. It is a lot safer and quicker this way.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/610804#M17833</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-10T19:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/623885#M18178</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Hi SASKiwi,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;I found a solution to this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;./sas-set-metadata-access -profile "Admin" "/MBL Actual" -grant sas:Read,Write,ReadMetadata,WriteMetadata&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;./sas-set-metadata-access -profile "Admin" "/System/Secured Libraries/MBL" -grant sas:Read,Write,ReadMetadata,WriteMetadata&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://urldefense.proofpoint.com/v2/url?u=https-3A__go.documentation.sas.com_-3FdocsetId-3Dbisecag-26docsetTarget-3Dn1tudilce9s6rdn1wtlrd9fllniq.htm-26docsetVersion-3D9.4-26locale-3Den&amp;amp;d=DwMGAg&amp;amp;c=6c8DIriZkJJjEzDlEHg4pTfR83wWvI-L5gxS0uxob8g&amp;amp;r=nGQ175kRTSBlIYV2lahz6pb6BsX8CXP8cy0MIsN7Eqw&amp;amp;m=psKo6GNy-1kp8zAafGDuGALgJXk5t3Suo0gF6fjbAf4&amp;amp;s=_7XdMSfjScF2Z49782GtIR5g6utW4Ly673hwIfDezpo&amp;amp;e=" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable"&gt;Batch Tool: sas-set-metadata-access&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can check the link. I think it's safe to do, because&amp;nbsp;I tried and it's working.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 15:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/623885#M18178</guid>
      <dc:creator>rajdeep</dc:creator>
      <dc:date>2020-02-11T15:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: creating SAS Group in Metadata - programmatically</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/623945#M18180</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13220"&gt;@rajdeep&lt;/a&gt;&amp;nbsp;- Good to see you found a way of doing this. For the level of maintenance we do in metadata I still find SAS Management Console the most efficient way of making changes.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 18:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/creating-SAS-Group-in-Metadata-programmatically/m-p/623945#M18180</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-02-11T18:57:28Z</dc:date>
    </item>
  </channel>
</rss>

