<?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 I create a custom Identity-Based Substitution Variable in SAS Viya in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-I-create-a-custom-Identity-Based-Substitution-Variable-in/m-p/672824#M19557</link>
    <description>The only identity values available are SAS.IdentityGroups and SAS.Userid, so your table would need to include one of these values for row-level security. So if the table includes StateCd as your filtering value you would need a group for each StateCd, and grant memberships to those groups accordingly, then use SAS.IdentityGroups as the filter.</description>
    <pubDate>Tue, 28 Jul 2020 13:37:34 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2020-07-28T13:37:34Z</dc:date>
    <item>
      <title>How to I create a custom Identity-Based Substitution Variable in SAS Viya</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-I-create-a-custom-Identity-Based-Substitution-Variable-in/m-p/672566#M19551</link>
      <description>&lt;P&gt;Hello, I am new to SAS as well as SAS Viya. I am in the process of trying to add row-level security for a group of users. (SAS Viya&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have 50 different users within a group, and this group has access to a caslib that consists of 50 tables (within db).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to take advantage of the substitution variables within SAS, however, I need a variable called state_cd. (each user has access to 1 to many state_cds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; Is it possible to create a metadata table with the needed data and utilize it to create a dynamic Identity Based Substitution filter?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to this:&amp;nbsp;&lt;/P&gt;&lt;PRE class="xisDoc-codeFragment"&gt;&lt;EM&gt;FacilityRegion&lt;/EM&gt; In ('SUB::SAS.IdentityGroups')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;(but instead of SAS.IdentityGroups, change it to METADATA_TBL.StateCd)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a link to the sas documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=calcdc&amp;amp;cdcVersion=3.4&amp;amp;docsetId=calauthzcas&amp;amp;docsetTarget=n1bf0cwn6ae85gn1b64x2j0czu24.htm&amp;amp;locale=en#p0typu0legb624n139nqaw1p19pt"&gt;https://go.documentation.sas.com/?cdcId=calcdc&amp;amp;cdcVersion=3.4&amp;amp;docsetId=calauthzcas&amp;amp;docsetTarget=n1bf0cwn6ae85gn1b64x2j0czu24.htm&amp;amp;locale=en#p0typu0legb624n139nqaw1p19pt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 15:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-I-create-a-custom-Identity-Based-Substitution-Variable-in/m-p/672566#M19551</guid>
      <dc:creator>sb_sas</dc:creator>
      <dc:date>2020-07-27T15:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to I create a custom Identity-Based Substitution Variable in SAS Viya</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-I-create-a-custom-Identity-Based-Substitution-Variable-in/m-p/672824#M19557</link>
      <description>The only identity values available are SAS.IdentityGroups and SAS.Userid, so your table would need to include one of these values for row-level security. So if the table includes StateCd as your filtering value you would need a group for each StateCd, and grant memberships to those groups accordingly, then use SAS.IdentityGroups as the filter.</description>
      <pubDate>Tue, 28 Jul 2020 13:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-I-create-a-custom-Identity-Based-Substitution-Variable-in/m-p/672824#M19557</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2020-07-28T13:37:34Z</dc:date>
    </item>
  </channel>
</rss>

