BookmarkSubscribeRSS Feed
cuevasj
Quartz | Level 8

I have a VA project that has a column labeled, "user_name". How can I filter what a user sees based on the username they used to log in to VA. I would like to create a "Data Source Filter" that simply checks the column in my data set to the user name of the person who logged in. like

 

  ???  'user_name'n = &_sysuserid   ???

 

 

I can't seem to find anything online that doesn't involve some kind of batch script process. This seems way complicated for a simple row-level, one-to-one (user_name to logged in user) relationship. Are batch scripts really the only way to do this? What happens when you have 5,000 employees with 135,000 customers that you want to be able to restrict what customer(s) an employee(s) can see.

1 REPLY 1
SASKiwi
PROC Star

The way to do this in VA is with row level security. You can't reference macro variables in VA as you are suggesting.

 

This post may be helpful explaining how to do this:

https://communities.sas.com/t5/SAS-Visual-Analytics/Row-level-security-in-VA-report-how-can-I-accomp...

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 892 views
  • 0 likes
  • 2 in conversation