<?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: Alter permission VA program in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/707139#M14526</link>
    <description>So you want to set or reset the permissions programmatically? &lt;BR /&gt;Maybe change the title to describe the question more explicitly? &lt;BR /&gt;Moving the question to VA community.</description>
    <pubDate>Sat, 19 Dec 2020 07:57:16 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-12-19T07:57:16Z</dc:date>
    <item>
      <title>Re: Alter permission VA program</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/706598#M14525</link>
      <description>Hi Cris,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How users were added and their respective permissions on folders and reports in VA, but we just saw that it is currently incorrect and we would like to change user permissions for folders and VA reports for all.&lt;BR /&gt;Researching we saw a possibility using SAS GUIDE but we did not get an efficient way.&lt;BR /&gt;&lt;BR /&gt;original code&lt;BR /&gt;&lt;BR /&gt;libname dirm 'S:\pgms\metalib';&lt;BR /&gt;&lt;BR /&gt;%let mypw={ }&lt;BR /&gt;&lt;BR /&gt;options metaserver = ""&lt;BR /&gt;metaport = 8561&lt;BR /&gt;metauser = ""&lt;BR /&gt;metapass = ""&lt;BR /&gt;metarepository = Foundation&lt;BR /&gt;metaprotocol = bridge&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;libname dirm 'F:\SAS_DATASETS\pgms\metalib';&lt;BR /&gt;libname dirt 'F:\SAS_DATASETS\pgms\metalib_target';&lt;BR /&gt;libname dirc 'F:\SAS_DATASETS\pgms\metalib_change';&lt;BR /&gt;libname dira 'F:\SAS_DATASETS\pgms\metalib_aplicar';&lt;BR /&gt;&lt;BR /&gt;%mduextr(LIBREF=dirm);&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table VA_Grupos as&lt;BR /&gt;select NOME_GRUPO, Login_Usuario, displayname, memDesc, title from&lt;BR /&gt;(select memid, name as NOME_GRUPO, memName as Login_Usuario, memDesc from dirm.Groupmempersons_info) as a left join&lt;BR /&gt;(select objid, title, displayname from dirm.person) as b on a.memid=b.objid&lt;BR /&gt;order by NOME_GRUPO, displayname;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table VA_Usuarios as&lt;BR /&gt;select keyid, displayname, name, description,title from dirm.person&lt;BR /&gt;order by displayname;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;%mducmp(master=dirm, target=dirt, change=dirc);&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table grpmems as select * from dirm.Grpmems where grpkeyid='A5MZOL7U.A50000JG' and memkeyid='Larissa_Braga';quit;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;insert into dirm.Grpmems select * from grpmems;quit;&lt;BR /&gt;&lt;BR /&gt;%mduchglb(change=dirc);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%mdsecds(folder="/Fonte_de_Dados/", includesubfolders=yes);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%mdsecds(identitynames="sasdemo,PUBLIC", identitytypes="Person,IdentityGroup",&lt;BR /&gt;membertypes="Report", perms="WriteMetadata");&lt;BR /&gt;&lt;BR /&gt;%mdsecds(identitynames="jose_ramos", identitytypes="Person", membertypes="Library",&lt;BR /&gt;perms="ReadMetadata");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2020 11:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/706598#M14525</guid>
      <dc:creator>lgsucupira</dc:creator>
      <dc:date>2020-12-17T11:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Alter permission VA program</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/707139#M14526</link>
      <description>So you want to set or reset the permissions programmatically? &lt;BR /&gt;Maybe change the title to describe the question more explicitly? &lt;BR /&gt;Moving the question to VA community.</description>
      <pubDate>Sat, 19 Dec 2020 07:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/707139#M14526</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-12-19T07:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alter permission VA program</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/707219#M14527</link>
      <description>&lt;P&gt;Updating SAS metadata is best done in SAS DATA steps, not in SQL, as you have a lot more control and can use the metadata read and update functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SAS Guide for this: &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lrmeta&amp;amp;docsetTarget=titlepage.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Metadata Interface Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please bear in mind that the metadata data model is horribly complicated, and unraveling it is a steep learning curve. There is always the danger of corrupting the metadata repository if your updates don't work correctly. You should ALWAYS create a backup before you update - easy to do in SMC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I prefer to stick to configuring metadata in SMC. It's a lot easier and a lot less dangerous. However I'm lucky in that we only have a small number of SAS users so manual maintenance does not take long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a LOT of SAS users then automated metadata updates make a lot more sense. In this case you should be syncing your metadata users from Active Directory or Unix equivalent as that will save a huge amount of work and possibly avoid some of the permissions errors you are seeing. SAS provides programs for doing this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2020 22:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/707219#M14527</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-12-19T22:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Alter permission VA program</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/707452#M14530</link>
      <description>exactly what programs does sas offer so that it can serve as support i am grateful!</description>
      <pubDate>Mon, 21 Dec 2020 13:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/707452#M14530</guid>
      <dc:creator>lgsucupira</dc:creator>
      <dc:date>2020-12-21T13:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Alter permission VA program</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/707754#M14534</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/361051"&gt;@lgsucupira&lt;/a&gt;&amp;nbsp; - The link I sent you contains examples of reading and updating SAS metadata. They are a good place to start. I also suggest you Google for SAS metadata examples also. The only supported programs I'm aware of are those mentioned in the documentation and the LDAP / AD account synchronisation with SAS metadata:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=p02wesbzrochnbn1na7fqdy2gdvo.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=p02wesbzrochnbn1na7fqdy2gdvo.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/40/628.html" target="_blank"&gt;https://support.sas.com/kb/40/628.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 20:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/707754#M14534</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-12-22T20:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alter permission VA program</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/708576#M14542</link>
      <description>Hi SASKiwi&lt;BR /&gt;thank you very much, I am studying the content of the link, maybe I need some more help</description>
      <pubDate>Tue, 29 Dec 2020 15:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/708576#M14542</guid>
      <dc:creator>lgsucupira</dc:creator>
      <dc:date>2020-12-29T15:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alter permission VA program</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/708643#M14544</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/361051"&gt;@lgsucupira&lt;/a&gt; - I have yet to find many use cases where the long and steep learning curve is worth it &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;. Good luck! Also please note that if you are planning to move to SAS Viya in the near future like many SAS users then the problem disappears - there is no metadata in Viya. We are planning such a move ourselves so it is pointless for us to spend a lot of time on understanding metadata structure.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 21:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Re-Alter-permission-VA-program/m-p/708643#M14544</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-12-29T21:08:58Z</dc:date>
    </item>
  </channel>
</rss>

