You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some folks would like a quick and easy way to revoke access to a piece of content. This can be accomplished today with the API one by one (though not yet with the SDK IIUC). But it would be nice to make a wrapper that encapsulates this functionality so someone can remove all of the users + viewers with one SDK call. We might add an API for this bulk action, but we can implement this SDK side before and see if it works for folks.
A possible sketch (though not a mandate):
from posit.connect import Client
con = Client()
content_to_clean = con.content.get(id = "...")
content_to_clean.remove_shares(viewers = True, collaborators = True) # I'm assuming these would actually both be True by default, but for clarity have them listed here.
Some folks would like a quick and easy way to revoke access to a piece of content. This can be accomplished today with the API one by one (though not yet with the SDK IIUC). But it would be nice to make a wrapper that encapsulates this functionality so someone can remove all of the users + viewers with one SDK call. We might add an API for this bulk action, but we can implement this SDK side before and see if it works for folks.
A possible sketch (though not a mandate):
We've had requests for this in the Connect UI as well
The text was updated successfully, but these errors were encountered: