SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
RGarrido
Calcite | Level 5

I am trying to get the folders inside each user in /SAS Content/Users recursively.  It seems the permissions for each user folder does not allow recursive look within each user folder.  I have dabbled with the REST API codes but without success:

proc http
url="&BASE_URI./folders/folders/{root uri of user folder}/members?limit=20%nrstr(&recursive)=true%nrstr(&followReferences)=true"
out= folders
oauth_bearer = sas_services;
headers
'Content-Type'= 'application/vnd.sas.content.folder.path+json'
'Accept' = 'application/vnd.sas.collection+json'
'Accept' = 'application/vnd.sas.summary+json'
'Accept' = 'application/json'
'Accept' = 'application/vnd.sas.api+json';
run;

 

Has anyone tried doing this?  The result I get is simply a list of the main folders of each user but without the folders inside each of them.  Thanks much in advance for your help.

1 REPLY 1
JOL
SAS Employee JOL
SAS Employee
Was this resolved? Try reposting under Administration -> Administration and Deployment

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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