BookmarkSubscribeRSS Feed
MattAtSAS
SAS Employee

Once a folder is created with folder API, how do you subsequently modify the folder permissions related to edit, move, delete, etc?    Specifically, I want to limit what a user can do with a created folder, when they view said folder in Environment Manager.   

 

Do you use the authorization API to do this?

Do you use the annotation API to do this?

Can you specify the permissions at the point when you are creating a folder with the folder API? (seems unlikely but thought I'd ask)

 

Overall, it seems like when you create a folder with the folder API, the resulting folder returns a response that includes links for GET, POST, DELETE, etc.  It seems like those links are used by the Environment Manager when determining what actions can be taken on a specific folder?

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

Does this help?

 

Does using  PATCH  with

--header 'Authorization: ...  ' 

work?

MattAtSAS
SAS Employee

Does that authorization header deal with authorization of the request itself and not the authorization of the folders?

joeFurbee
Community Manager

Unfortunately, the patchFolder API does not include folder permissions as a parameter. The Auth...header parameter is for the REST call itself, not the for the Folder. I'm checking with our dev team to see if there is any other way to control the folder permissions via an API. I'll repost when I get more information.


Join us for SAS Community Trivia
SAS Bowl L, PROC HTTP
Wednesday, February 19, 2024, at 10:00 a.m. ET | #SASBowl

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 3 replies
  • 1125 views
  • 0 likes
  • 3 in conversation