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