<?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 to get user group information in sas in Developers</title>
    <link>https://communities.sas.com/t5/Developers/How-to-get-user-group-information-in-sas/m-p/687169#M952</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/349504"&gt;@KatiyarShubham&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I wanted to follow up&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;'s response with the following disclaimer:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The identities API is not publicly available. &lt;STRONG&gt;PLEASE UNDERSTAND:&amp;nbsp;&lt;/STRONG&gt;as the API is not public there is a higher risk of breaking changes without warning. Since&amp;nbsp;the REST API is currently not supported, SAS Technical Support will not provide any support if you have any additional questions about the usage of the REST API identities. The API may become public/documented/supported in the future, but until then, will need to be used with this understanding.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also want to look at the &lt;A href="https://go.documentation.sas.com/?docsetId=calcli&amp;amp;docsetTarget=n01xwtcatlinzrn1gztsglukb34a.htm&amp;amp;docsetVersion=3.4&amp;amp;locale=en" target="_self"&gt;SAS Viya CLI&lt;/A&gt;. There are multiple commands supporting identities along with &lt;A href="https://go.documentation.sas.com/?docsetId=calcli&amp;amp;docsetTarget=n0b3otavtunmoin13bfey0sukcps.htm&amp;amp;docsetVersion=3.4&amp;amp;locale=en" target="_self"&gt;examples&lt;/A&gt;. The &lt;A href="https://github.com/sassoftware/pyviyatools" target="_self"&gt;pyviyatools GitHub repository&lt;/A&gt; supports the CLI from a Python perspective.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Joe&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:40:57 GMT</pubDate>
    <dc:creator>joeFurbee</dc:creator>
    <dc:date>2020-09-28T11:40:57Z</dc:date>
    <item>
      <title>How to get user group information in sas</title>
      <link>https://communities.sas.com/t5/Developers/How-to-get-user-group-information-in-sas/m-p/687133#M950</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am looking for sas viya rest api to retrieve user group information of a particular user.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 05:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-get-user-group-information-in-sas/m-p/687133#M950</guid>
      <dc:creator>KatiyarShubham</dc:creator>
      <dc:date>2020-09-28T05:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get user group information in sas</title>
      <link>https://communities.sas.com/t5/Developers/How-to-get-user-group-information-in-sas/m-p/687138#M951</link>
      <description>&lt;P&gt;Hi Katiyar,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The endpoint you need is this one:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;amp;base_uri/identities/users/&amp;amp;user/memberships?limit=100&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're looking to do this in SAS, there is already a macro in the&amp;nbsp;&lt;A href="https://github.com/sasjs/core" target="_self"&gt;@sasjs/core&lt;/A&gt; library - &lt;A href="https://github.com/sasjs/core/blob/main/viya/mv_getusergroups.sas" target="_self"&gt;mv_getusergroups.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example usage:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* compile macros */
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;
/* extract groups for a particular user */
%mv_getusergroups(&amp;amp;sysuserid,outds=users)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 07:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-get-user-group-information-in-sas/m-p/687138#M951</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2020-09-28T07:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get user group information in sas</title>
      <link>https://communities.sas.com/t5/Developers/How-to-get-user-group-information-in-sas/m-p/687169#M952</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/349504"&gt;@KatiyarShubham&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I wanted to follow up&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;'s response with the following disclaimer:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The identities API is not publicly available. &lt;STRONG&gt;PLEASE UNDERSTAND:&amp;nbsp;&lt;/STRONG&gt;as the API is not public there is a higher risk of breaking changes without warning. Since&amp;nbsp;the REST API is currently not supported, SAS Technical Support will not provide any support if you have any additional questions about the usage of the REST API identities. The API may become public/documented/supported in the future, but until then, will need to be used with this understanding.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also want to look at the &lt;A href="https://go.documentation.sas.com/?docsetId=calcli&amp;amp;docsetTarget=n01xwtcatlinzrn1gztsglukb34a.htm&amp;amp;docsetVersion=3.4&amp;amp;locale=en" target="_self"&gt;SAS Viya CLI&lt;/A&gt;. There are multiple commands supporting identities along with &lt;A href="https://go.documentation.sas.com/?docsetId=calcli&amp;amp;docsetTarget=n0b3otavtunmoin13bfey0sukcps.htm&amp;amp;docsetVersion=3.4&amp;amp;locale=en" target="_self"&gt;examples&lt;/A&gt;. The &lt;A href="https://github.com/sassoftware/pyviyatools" target="_self"&gt;pyviyatools GitHub repository&lt;/A&gt; supports the CLI from a Python perspective.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-get-user-group-information-in-sas/m-p/687169#M952</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2020-09-28T11:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get user group information in sas</title>
      <link>https://communities.sas.com/t5/Developers/How-to-get-user-group-information-in-sas/m-p/687233#M953</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214450"&gt;@joeFurbee&lt;/a&gt;&amp;nbsp;it's an interesting shift in what is &amp;amp; isn't officially documented &amp;amp; therefore supported when it comes to the Viya APIs. The admin CLI provides scope to see what's happening under the covers when using the "&lt;FONT face="courier new,courier"&gt;--verbose&lt;/FONT&gt;" option where you'll see the identities API calls doing their stuff using the examples you link to, compared to what can be seen directly in the python scripts such as&amp;nbsp;&lt;A href="https://github.com/sassoftware/pyviyatools/blob/master/listgroupsandmembers.py" target="_blank" rel="noopener"&gt;listgroupsandmembers.py&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both certainly provided the starting point for creating customized processes.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-get-user-group-information-in-sas/m-p/687233#M953</guid>
      <dc:creator>alancox</dc:creator>
      <dc:date>2020-09-28T15:04:10Z</dc:date>
    </item>
  </channel>
</rss>

