<?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: metadata server that contains the Folder information in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327261#M271644</link>
    <description>An alternative to do the work yourself is to explore the SMC plugin from Metacoda.</description>
    <pubDate>Wed, 25 Jan 2017 07:25:56 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-01-25T07:25:56Z</dc:date>
    <item>
      <title>metadata server that contains the Folder information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327206#M271643</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its nice to be here for the first time. &amp;nbsp;Please help I need a Guide Code just like&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEtaData Server that contains the user information (&lt;A href="http://support.sas.com/kb/30/682.html" target="_blank"&gt;http://support.sas.com/kb/30/682.html&lt;/A&gt;), BUT&amp;nbsp;that&amp;nbsp;I can&amp;nbsp;see folder information on metadata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I mean need to get a list of folders with respective groups authorizations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image1.png: From Metadata Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;greetings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Luis Manrique&lt;/P&gt;&lt;P&gt;SaS Consultor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13359iEF68E378171E36CF/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Image1.PNG" title="Image1.PNG" /&gt;</description>
      <pubDate>Tue, 24 Jan 2017 22:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327206#M271643</guid>
      <dc:creator>LuisMan</dc:creator>
      <dc:date>2017-01-24T22:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: metadata server that contains the Folder information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327261#M271644</link>
      <description>An alternative to do the work yourself is to explore the SMC plugin from Metacoda.</description>
      <pubDate>Wed, 25 Jan 2017 07:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327261#M271644</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-25T07:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: metadata server that contains the Folder information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327297#M271645</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options metaserver=metadata_server_name.IP_address /* network name/address of the metadata server, */
                                                   /* for example, metaserver=d441.na.sas.com) */
                                        
        metaport=8561               /* The port on which the metadata server is listening. */

        metauser="metadata\userid"  /* The domain-qualified user ID for the connection to */
                                    /* the metadata server. */

        metapass="password"         /* Password for the METAUSER= user ID. */
 
        metaprotocol=bridge         /* Protocol for the metadata server. */  

        metarepository=Foundation;  /* The default location of the user information that */
                                    /* is in the foundation repository. */

data folders;
   length uri Folder group groupuri $256 id $20;
  
       /* Initialize variables to missing. */
   n=1;
   uri='';
   Folder='';
   
  
       /* Determine how many person objects are defined. */
   nobj=metadata_getnobj("omsobj:Tree?@Name contains ''",n,uri);
   if nobj=0 then put 'No folders available.';

   else do while (nobj &amp;gt; 0);

         /* Retrieve the current person's name. */
      rc=metadata_getattr(uri, "Name", Folder);

	      n+1;
      nobj=metadata_getnobj("omsobj:Tree?@Name contains ''",n,uri);
	  output;
   end;
  keep Folder ;
run&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the above you can get&amp;nbsp;list of folder name only.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 09:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327297#M271645</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2017-01-25T09:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: metadata server that contains the Folder information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327561#M271646</link>
      <description>&lt;P&gt;Hello Thanks for your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That helps a lot. Maybe do you know wich variable do I need for listing Authorizations Groups on this function or maybe Do I need to use a different function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because this function gets me Groups, but I need Authorization (authorization.png)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;grpassn=metadata_getnasn(uri,"IdentityGroups",a,groupuri);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you know I will appreciate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13367iFBDCC6E850ADF07A/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="authorization.PNG" title="authorization.PNG" /&gt;</description>
      <pubDate>Wed, 25 Jan 2017 22:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327561#M271646</guid>
      <dc:creator>LuisMan</dc:creator>
      <dc:date>2017-01-25T22:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: metadata server that contains the Folder information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327596#M271647</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt; for mentioning Metacoda Plug-ins and thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125240"&gt;@LuisMan&lt;/a&gt; for requesting an evaluation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought I'd let Luis (and others interested in this topic) know a little bit about how the Metacoda Identity Permissions Explorer and Metacoda Object Permissions Explorer provide an extremely quick way to get a effective permissions list of what a user/group has access to or what users/group who have access to a SAS metadata object. These plug-ins show the end result of all the applied ACTs and ACEs - essentially the end result and what you would otherwise need to determine by clicking on many Authorizations tabs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you can see who has access within the Explorer plug-in, you can produce a HTML report which our customers find very useful for auditing purposes. I spoke about this at a SAS Banking 5-50 webinar last year and you can see the panel discussion and demonstrations at the on-demand webinar at &lt;A href="https://www.metacoda.com/en/2016/07/embark-security-journey-metacoda/" target="_blank"&gt;https://www.metacoda.com/en/2016/07/embark-security-journey-metacoda/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you'd like some product information on these plug-ins, they can be found at &lt;A href="https://www.metacoda.com/en/products/security-plug-ins/" target="_blank"&gt;https://www.metacoda.com/en/products/security-plug-ins/&lt;/A&gt; and there is some technical information on how the interface works at &lt;A href="https://platformadmin.com/blogs/paul/2012/04/effective-permissions-explorers-sneak-peek/" target="_blank"&gt;https://platformadmin.com/blogs/paul/2012/04/effective-permissions-explorers-sneak-peek/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 00:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327596#M271647</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2017-01-26T00:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: metadata server that contains the Folder information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327610#M271648</link>
      <description>&lt;P&gt;The Metacoda plug-in provides&amp;nbsp;the most versatile and easy to use option and is certainly worth investigating. In case you can't get access to it then also investigate what the OOTB security report macros could do for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Security Report Macros&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/bisecag/69827/HTML/default/viewer.htm#p1h2c11fxfn6xcn1gq9adnt7yhrb.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/bisecag/69827/HTML/default/viewer.htm#p1h2c11fxfn6xcn1gq9adnt7yhrb.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 01:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327610#M271648</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-01-26T01:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: metadata server that contains the Folder information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327784#M271649</link>
      <description>&lt;P&gt;You can try the below code. It is not tested but it should work. I have used&amp;nbsp;metasec_getnauth function. There are separate function &amp;nbsp;for metadata security.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options metaserver=metadata_server_name.IP_address /* network name/address of the metadata server, */
                                                   /* for example, metaserver=d441.na.sas.com) */
                                        
        metaport=8561               /* The port on which the metadata server is listening. */

        metauser="metadata\userid"  /* The domain-qualified user ID for the connection to */
                                    /* the metadata server. */

        metapass="password"         /* Password for the METAUSER= user ID. */
 
        metaprotocol=bridge         /* Protocol for the metadata server. */  

        metarepository=Foundation;  /* The default location of the user information that */
                                    /* is in the foundation repository. */

data folders;
   length uri Folder group groupuri $256 id $20;
   length tc type name auth perm cond $20;
  
       /* Initialize variables to missing. */
   n=1;
   uri='';
   Folder='';
   
  
       /* Determine how many person objects are defined. */
   nobj=metadata_getnobj("omsobj:Tree?@Name contains ''",n,uri);
   if nobj=0 then put 'No folders available.';

   else do while (nobj &amp;gt; 0);

         /* Retrieve the current person's name. */
      rc=metadata_getattr(uri, "Name", Folder);

	      n+1;
      nobj=metadata_getnobj("omsobj:Tree?@Name contains ''",n,uri);
     
	n_auth=1;
	rc_auth=metasec_getnauth(tc,uri,n_auth,type,name,auth,perm,cond);
		do while (rc_auth=0);
		rc_auth=metasec_getnauth(tc,uri,n_auth,type,name,auth,perm,cond);
		n_auth+1; 
		output;
		end;
	
   end;
  keep Folder type name perm ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 17:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327784#M271649</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2017-01-26T17:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: metadata server that contains the Folder information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327865#M271650</link>
      <description>&lt;P&gt;Hello thank you for your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script works, BUT just give me one group of the folder,if folder has more than one group does not show on the output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;something like this is missing but i could no performe for folders, this is from person example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* If this person does not belong to any groups, set their group */&lt;BR /&gt; /* variable to 'No groups' and output the name. */&lt;BR /&gt; if grpassn in (-3,-4) then do;&lt;BR /&gt; group="No groups";&lt;BR /&gt; output;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;/* If the person belongs to any groups, loop through the list */&lt;BR /&gt; /* and retrieve the name of each group, outputting each on a */&lt;BR /&gt; /* separate record. */&lt;BR /&gt; else do while (grpassn &amp;gt; 0);&lt;BR /&gt; rc2=metadata_getattr(groupuri, "Name", group);&lt;BR /&gt; a+1;&lt;BR /&gt; output;&lt;BR /&gt; grpassn=metadata_getnasn(uri,"IdentityGroups",a,groupuri);&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/metadata-server-that-contains-the-Folder-information/m-p/327865#M271650</guid>
      <dc:creator>LuisMan</dc:creator>
      <dc:date>2017-01-26T21:39:54Z</dc:date>
    </item>
  </channel>
</rss>

