sharepoint 2013 pre-security-trimmer RRS feed

  • 问题

  • I tried to write a Pre-Security-Trimmer according to But it didn't work.

    I believe that the code could run to AddAccess() method.

    What I want to do is "Deny user  domain1\UserA" to see the search result.

    So I wrote the code like: 

    claims.AddLast(new Tuple<Claim, bool>(new Claim("", @"domain1\UserA", "", "SharePoint", "Windows"), true));

    return claims;

    Actually, I tried many other claim types according to 

    But none of them worked.

    Can anyone tell what the problem is?

    Thanks in advance!

    • 已编辑 brouno 2016年3月4日 9:10 Translate to English
    2016年3月3日 15:55