<?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: What groups am I in? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/What-groups-am-I-in/m-p/594436#M528</link>
    <description>&lt;P&gt;Hey Alan,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;having in mind how SAS Viya works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a- group memberships come from AD, except&amp;nbsp; for&amp;nbsp; the Custom Groups&lt;/P&gt;
&lt;P&gt;b- SAS Viya works with Rest APIs&lt;/P&gt;
&lt;P&gt;c- the Rest APIs contain methods to retrieve the memberships&lt;/P&gt;
&lt;P&gt;d- you don't need XCMD to&amp;nbsp; call a restAPI (that is the magic of rest APIs)&lt;/P&gt;
&lt;P&gt;e- you can use JSON files to be sent to the rest APIs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not tried yet this particular method but I think it safe to assume you can run proc htttp,soap and or JSON to interact with the Rest APIs from "simple" SAS code.&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, and to be fair,&amp;nbsp; I could not see a specific identity membership Rest request in&amp;nbsp;&lt;A href="https://developer.sas.com/apis/rest/CoreServices/" target="_blank" rel="noopener"&gt;https://developer.sas.com/apis/rest/CoreServices/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Pity&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But...! SAS has made available as well&amp;nbsp;&lt;A href="https://github.com/sassoftware/pyviyatools" target="_blank" rel="noopener"&gt;https://github.com/sassoftware/pyviyatools&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In there, I can see a&amp;nbsp;&lt;A href="https://github.com/sassoftware/pyviyatools/blob/master/listgroupsandmembers.py" target="_blank" rel="noopener"&gt;https://github.com/sassoftware/pyviyatools/blob/master/listgroupsandmembers.py&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if I am correct, all should go down to use the&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;/identities/groups&lt;/STRONG&gt; and&lt;/SPAN&gt;&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="pl-s"&gt;/identities/groups/&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-k"&gt;+&lt;/SPAN&gt;groupid&lt;SPAN class="pl-k"&gt;+&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="pl-s"&gt;&lt;STRONG&gt;&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;/members&lt;/STRONG&gt; Rest APIs&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Juan&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2019 09:31:55 GMT</pubDate>
    <dc:creator>JuanS_OCS</dc:creator>
    <dc:date>2019-10-07T09:31:55Z</dc:date>
    <item>
      <title>What groups am I in?</title>
      <link>https://communities.sas.com/t5/Developers/What-groups-am-I-in/m-p/594434#M527</link>
      <description>&lt;P&gt;In SAS 9 we could use SAS code to query metadata for group membership information (eg with a macro&lt;A href="https://github.com/Boemska/macrocore/blob/master/meta/mm_getgroups.sas" target="_self"&gt; like this&lt;/A&gt;).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Viya / SPRE, what would be an equivalent approach?&amp;nbsp; Presuming XCMD is disabled.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 08:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/What-groups-am-I-in/m-p/594434#M527</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2019-10-07T08:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: What groups am I in?</title>
      <link>https://communities.sas.com/t5/Developers/What-groups-am-I-in/m-p/594436#M528</link>
      <description>&lt;P&gt;Hey Alan,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;having in mind how SAS Viya works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a- group memberships come from AD, except&amp;nbsp; for&amp;nbsp; the Custom Groups&lt;/P&gt;
&lt;P&gt;b- SAS Viya works with Rest APIs&lt;/P&gt;
&lt;P&gt;c- the Rest APIs contain methods to retrieve the memberships&lt;/P&gt;
&lt;P&gt;d- you don't need XCMD to&amp;nbsp; call a restAPI (that is the magic of rest APIs)&lt;/P&gt;
&lt;P&gt;e- you can use JSON files to be sent to the rest APIs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not tried yet this particular method but I think it safe to assume you can run proc htttp,soap and or JSON to interact with the Rest APIs from "simple" SAS code.&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, and to be fair,&amp;nbsp; I could not see a specific identity membership Rest request in&amp;nbsp;&lt;A href="https://developer.sas.com/apis/rest/CoreServices/" target="_blank" rel="noopener"&gt;https://developer.sas.com/apis/rest/CoreServices/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Pity&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But...! SAS has made available as well&amp;nbsp;&lt;A href="https://github.com/sassoftware/pyviyatools" target="_blank" rel="noopener"&gt;https://github.com/sassoftware/pyviyatools&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In there, I can see a&amp;nbsp;&lt;A href="https://github.com/sassoftware/pyviyatools/blob/master/listgroupsandmembers.py" target="_blank" rel="noopener"&gt;https://github.com/sassoftware/pyviyatools/blob/master/listgroupsandmembers.py&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if I am correct, all should go down to use the&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;/identities/groups&lt;/STRONG&gt; and&lt;/SPAN&gt;&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="pl-s"&gt;/identities/groups/&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-k"&gt;+&lt;/SPAN&gt;groupid&lt;SPAN class="pl-k"&gt;+&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="pl-s"&gt;&lt;STRONG&gt;&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;/members&lt;/STRONG&gt; Rest APIs&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Juan&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 09:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/What-groups-am-I-in/m-p/594436#M528</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2019-10-07T09:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: What groups am I in?</title>
      <link>https://communities.sas.com/t5/Developers/What-groups-am-I-in/m-p/594438#M529</link>
      <description>&lt;P&gt;Hey Juan!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I figured it must be a REST API to obtain an AD group listing, but like you, couldn't see it in the docs.&amp;nbsp; Good spot finding it in the python repo!&amp;nbsp; Will try out those endpoints..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 09:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/What-groups-am-I-in/m-p/594438#M529</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2019-10-07T09:36:24Z</dc:date>
    </item>
  </channel>
</rss>

