1

I'm trying to change the access permissions of a folder on skydrive, but it isn't working.

Dictionary<string, object> folderData = new Dictionary<string, object>();
folderData.Add("shared_with", "Everyone (public)");
LiveConnectClient client = new LiveConnectClient(session);
client.PutAsync(folderId, folderData);

What am I doing wrong?

2 Answers 2

0

Remember that you need to have the wl.skydrive_update scope active to update data related to SkyDrive entities. Also, the permissions are read-only (details here).

0
0

the permissions are read-only. Like this, reading permission of folder.

...
    void Properties_Completed(object sender, LiveOperationCompletedEventArgs e)//completed
    {
        if (e.Error == null)
        {
            IDictionary<string,object> result = e.Result;
            object shr = result["shared_with"];
            IDictionary<string, object> permission = shr as IDictionary<string, object>;
            string access = permission["access"].ToString();
        }
    {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.