BookmarkSubscribeRSS Feed
a_SAS_sin
Obsidian | Level 7

Hi all,

 

In SAS 9.4 we have all our preassigned libraries assigned and stored in the metadata; the access to the libnames is then managed by the metadata which means a user has access or not to the folder where the libname was stored he would have or not the libname pre-assigned.

I seem to have heard that this is one of the most required features by SAS Viya Admins. My question is: has any of you found a workaround for this?

 

Thank you in advance

2 REPLIES 2
carl_sommer
SAS Employee

Given that there are no library objects in SAS VIya (aside from CASLIBS in CAS sessions), the Viya General Authorization system isn't able to help with library permissions or preassignment.

 

However youu could look at creating appropriate compute contexts for these purposes and permitting your users/groups to these contexts.   See SAS Help Center: SAS Compute: Server, Service, and Contexts and the section on the sas.compute.server: autoexec_code configuration instance.  If you truly needed highly-specific code, I've seen situations where PROC HTTP was used in the autoexec to determine the groups the user is in, and assign the librefs based upon that.

 

Carl Sommer - SAS Technical Support

 

carl_sommer
SAS Employee

And now I feel like I should have also said this instead.  

 

Look at the Resources tab when you edit a compute context.

 

carl_sommer_0-1740535211463.png

Reference SAS Help Center: Contexts Page

A better reference / writeup:  Managing Connections to Data Sources and SAS Libraries for Compute Sessions in SAS Viya

 

Carl Sommer - SAS Technical Support

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
Discussion stats
  • 2 replies
  • 2848 views
  • 1 like
  • 2 in conversation