ydcmd icon indicating copy to clipboard operation
ydcmd copied to clipboard

Invite / Uninvite Specific User to Folder with Specific Permissions (Read or Read/Write)

Open TheSimArchitect opened this issue 4 years ago • 3 comments

Your project looks awesome! Any chance we can use the API to add/remove (invite/uninvite) users to a shared folder (no public link to a folder, but shares that require the user to log in with the invited yandex user account)?

So far, I could only find ways to do it using the web interface, which is very sluggish, it would be awesome to be able to give and revoke access to specific users on each folder (read only, full access or no access) using a CLI, allowing us to also run scripts or just type/paste commands quickly for those operations without the annoyances of the web interface ;)

I have been researching for months but I can't find a method to use the API for that purpose anywhere. :'(

Thanks anyway!

TheSimArchitect avatar Aug 04 '20 14:08 TheSimArchitect

Any chance it's something possible?

TheSimArchitect avatar Aug 24 '20 17:08 TheSimArchitect

Unfortunately, I have no free time to add new features. Maybe someone else will be able to implement this and send a PR.

abbat avatar Aug 27 '20 11:08 abbat

Thanks @abbat! There's no method in the API documentation, that's the problem. I don't know if their API even supports that functionality, which seems to be locked up to their web interface so far, making it very hard to invite / uninvite users to a folder.

I contacted Yandex support but they don't deal with those types of requests and offer their product "as is".

I wish someone eventually finds a "way in" so we can control user access using CLI or Curl.

TheSimArchitect avatar Sep 15 '20 18:09 TheSimArchitect