Take the 2-minute tour ×

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?

share|improve this question
add comment

2 Answers

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).

share|improve this answer
Ok, How to read permission of folder? –  Oguzhan Jul 29 '12 at 10:08
Read the doc I linked to. –  Den Delimarsky Jul 29 '12 at 10:09
add comment
up vote 0 down vote accepted

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();
share|improve this answer
add comment

Your Answer


