<?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: Scope groups in API - use name or group id? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/682959#M932</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Is this (the fact that group ID as opposed to name is expected) explicitly stated somewhere official? Just wondering I am missing some major part of the documentation, as I can't find this in writing anywhere&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 15:16:16 GMT</pubDate>
    <dc:creator>Ullsokk</dc:creator>
    <dc:date>2020-09-10T15:16:16Z</dc:date>
    <item>
      <title>Scope groups in API - use name or group id?</title>
      <link>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/682839#M927</link>
      <description>&lt;P&gt;I am trying to register an application using the following python code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer ' + IDtoken ,
}

data = { "client_id": "myclientid",
        "client_secret": "myclientsecret",
        "scope": ["openid", "group1"],
        "authorized_grant_types": ["authorization_code","refresh_token"],
        "redirect_uri": "urn:ietf:wg:oauth:2.0:oob" }&lt;/PRE&gt;&lt;P&gt;I have one custom group in Viya that I want to include in scope, in addition to "openid". Am I supposed to use the group name or the group ID in the request? The group name is something like MF_modelfactory_RW, and group id is, by happenstance, "group1" (just as the example code).&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 07:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/682839#M927</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2020-09-10T07:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scope groups in API - use name or group id?</title>
      <link>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/682915#M930</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68234"&gt;@Ullsokk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The value for 'scope' in your code should be the group ID. This would be as it appears in SAS Environment Manager.&lt;/P&gt;
&lt;P&gt;I took a look in my EM instance and see &lt;STRONG&gt;Name:&lt;/STRONG&gt; Esri Users and &lt;STRONG&gt;ID:&lt;/STRONG&gt; EsriUsers. In this instance I'd use EsriUsers in the scope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a link to a &lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1737-2018.pdf" target="_self"&gt;SASGF paper on OAuth and Viya&lt;/A&gt;. I consider it my go to for questions. Perhaps you will find it of use, if you'd not already discovered it.&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>Thu, 10 Sep 2020 12:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/682915#M930</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2020-09-10T12:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scope groups in API - use name or group id?</title>
      <link>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/682959#M932</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Is this (the fact that group ID as opposed to name is expected) explicitly stated somewhere official? Just wondering I am missing some major part of the documentation, as I can't find this in writing anywhere&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 15:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/682959#M932</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2020-09-10T15:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scope groups in API - use name or group id?</title>
      <link>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/683178#M934</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68234"&gt;@Ullsokk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there's some good examples (&amp;amp; similar questions) in this SAS blog post by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214450"&gt;@joeFurbee&lt;/a&gt;&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2019/01/25/authentication-to-sas-viya/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2019/01/25/authentication-to-sas-viya/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 07:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/683178#M934</guid>
      <dc:creator>alancox</dc:creator>
      <dc:date>2020-09-11T07:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scope groups in API - use name or group id?</title>
      <link>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/683252#M936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68234"&gt;@Ullsokk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;In addition to the post&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/198560"&gt;@alancox&lt;/a&gt;&amp;nbsp;mentions, you can refer to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/255099"&gt;@MikeRoda&lt;/a&gt;&amp;nbsp;'s SASGF paper:&amp;nbsp;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1737-2018.pdf" target="_self"&gt;OpenID Connect Opens the Door to SAS Viya APIs&lt;/A&gt;. I checked with Mike before I originally answered your question. He's the true SME on OAuth.&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>Fri, 11 Sep 2020 14:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Scope-groups-in-API-use-name-or-group-id/m-p/683252#M936</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2020-09-11T14:33:02Z</dc:date>
    </item>
  </channel>
</rss>

