BookmarkSubscribeRSS Feed
R_Chung
Quartz | Level 8

Is there any possibility to grant right in accessing database like read, write or read&write?

through role or any permission?

As I have gone through the capability and it seems nothing for me to do it.

4 REPLIES 4
LinusH
Tourmaline | Level 20
Capabilities is about functionality, not data itself.
Two options that you could investigate :
- have the RDBMS libref assigned with the META engine, thus enforcing SAS metadata authorization.
- set authorization within the database. Use appropriate login from SAS (users own with AUTHDOMAIN, or some group login that fits your needs.
Data never sleeps
R_Chung
Quartz | Level 8
What do you mean for the first statement?
For the second statement, do you mean that we directly set authorization in database?
LinusH
Tourmaline | Level 20
I assumed that you had a Metadata Server, no?
If you have it, you will for the users assign a libref that points to the Metadata registration for that library. Then, any tables in that libref can fall under SAS metadata authorization. Check the doc for more info.

And yes, and you need somehow get the client user token/login to be used when connecting to the database.
Data never sleeps
thomp7050
Pyrite | Level 9

May not apply, but the simplistic solution is: If you are storing the data in a shared library folder, you can make the shared library folder read only or exclude the user from the folder.  If you are using a server, another (albeit hacky) solution would be to create a scheduled task to copy the data to a folder that has your specified priveledges.  This way, the user will be restricted to the datasets based on your specifications via windows, and not SAS.

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!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 832 views
  • 0 likes
  • 3 in conversation