<?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 Filter by Logged-In User in SAS Visual Analytics (SAS Viya 4) in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/How-to-Filter-by-Logged-In-User-in-SAS-Visual-Analytics-SAS-Viya/m-p/971463#M2926</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/474290"&gt;@yf_nf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure your "user" column matches the ID of the requested username. You can visually see the User ID in SAS Environment Manager when you view the properties of the user.&lt;/P&gt;
&lt;P&gt;If this is correct, try, as an alternative, to set the Conditional Grant permission on the CAS table itself. See if that works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jul 2025 09:32:31 GMT</pubDate>
    <dc:creator>EyalGonen</dc:creator>
    <dc:date>2025-07-25T09:32:31Z</dc:date>
    <item>
      <title>How to Filter by Logged-In User in SAS Visual Analytics (SAS Viya 4)</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Filter-by-Logged-In-User-in-SAS-Visual-Analytics-SAS-Viya/m-p/969290#M2886</link>
      <description>&lt;P&gt;Hi everyone, In SAS Studio, I can retrieve the currently logged-in user using &amp;amp;SYSUSERID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS Visual Analytics (VA) on SAS Viya 4, I’m trying to achieve something similar. I have a dataset with a column named "user" that contains usernames. I want to filter this dataset within a VA report so that each user sees only the row(s) corresponding to their username.&lt;/P&gt;&lt;P&gt;I tried applying a data filter using the following expressions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;user = 'SUB::SAS.Userid'&lt;/LI&gt;&lt;LI&gt;UpCase(user) = UpCase('SUB::SAS.Userid')&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, in both cases, the filter returns 0 rows, even though the "user" column contains the exact username of the account I'm using to connect to the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I dynamically filter the data in SAS VA to show only the rows for the current logged-in user?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any guidance!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 10:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Filter-by-Logged-In-User-in-SAS-Visual-Analytics-SAS-Viya/m-p/969290#M2886</guid>
      <dc:creator>yf_nf</dc:creator>
      <dc:date>2025-06-18T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter by Logged-In User in SAS Visual Analytics (SAS Viya 4)</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Filter-by-Logged-In-User-in-SAS-Visual-Analytics-SAS-Viya/m-p/971463#M2926</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/474290"&gt;@yf_nf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure your "user" column matches the ID of the requested username. You can visually see the User ID in SAS Environment Manager when you view the properties of the user.&lt;/P&gt;
&lt;P&gt;If this is correct, try, as an alternative, to set the Conditional Grant permission on the CAS table itself. See if that works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 09:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Filter-by-Logged-In-User-in-SAS-Visual-Analytics-SAS-Viya/m-p/971463#M2926</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2025-07-25T09:32:31Z</dc:date>
    </item>
  </channel>
</rss>

