Set arithmetic with SharePoint groups
-
06-12-2019 - |
题
Is it possible to perform set arithmetic on sharepoint groups?
An example situation is audiencing.
I want the web part to display to all in group A who do not also belong to group B. And on that page, another web part is to be displayed to group B.
I figure this isnt possible as I cant find a source on it, but I thought id ask people who no doubt have more experience with this than I do.
Thanks.
解决方案
It seems even with complex programming (http://msdn.microsoft.com/en-us/library/ms578007.aspx) does not allow you to create the rule because with membership, the only operator I know of is "Member of". See if following helps:
Create three group names and put people in right groups:
Coders (Set A)
Managers (Set B)
Managers who can write code (Intersection of Set A and Set B)
Audience 1 (Rules below):
user belong to Coders
Audience 2 [ Rules below]
User belong to Managers
Or [in UI this corresponds to Satisfy any of the rules]
Users belong to Managers who can write code
Target WebPart 1 to Audience 1 and WebPart 2 to Audience 2
其他提示
You're in luck. This isn't available OOTB but Waldek has just released a post on Negated Audiences