admin管理员组

文章数量:1587899

需求:有两个site collection admin权限的用户user1和user2,user2删除OtherUserDelete.txt文件,user1进行还原,其中user1的回收站里面有两个文件CurrentUserDelete.txt(user1删除)和OtherUserDelete.txt(user2删除),这里只考虑first stage一级回收站的情况

dll引用:主要是调用Microsoft.SharepointOnline.CSOM中的Client api

问题:回收站分为两个,一个是End User的只有自己删除的文件,另外一个是site collection级别的回收站,但是Web.Recyclebin里面只能得到当前用户删除的文件,如下面代码

using (ClientContext clientContext = new ClientContext("https://youserver"))
                {
                    string pass = "yourpassword";
                    var securepassword = new SecureString();
                    foreach (char c in pass.ToCharArray())
                    {
                        securepassword.AppendChar(c);
                    }
                    cli

本文标签: 文件回收站其他用户SharePoint