Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:services:general_services:idm:idm-portal_documentation [2020/12/10 15:44]
ggroesc [Overview]
en:services:general_services:idm:idm-portal_documentation [2021/02/05 16:13] (current)
ggroesc [Overview]
Line 190: Line 190:
 Dynamic Exchange distribution groups are used to add members based on a filter expression. This filter specifies which attribute values an object needs to be part of this group (e.g. all objects with the attribute "department" set to "A").  Dynamic Exchange distribution groups are used to add members based on a filter expression. This filter specifies which attribute values an object needs to be part of this group (e.g. all objects with the attribute "department" set to "A"). 
 <WRAP center round tip 60%> <WRAP center round tip 60%>
-You can easily create a distribution group for all members of the department "AG I" by using the filter "**( department -eq 'AG I')**\\ All new staff will automatically be added to this group if the department is set to **AG I**."+You can easily create a distribution group for all members (normal user) of the department "AG I" by using the filter
 + 
 +''$usertype -eq '0' -and $department -eq 'AG I' '' 
 + 
 +All new staff will automatically be added to this group if the department is set to **AG I**." 
 +</WRAP> 
 + 
 +<WRAP center round important 60%> 
 +When using multiple filters be aware of logical interpretations of those filters and its grouped components. 
 +Using parentheses might be very useful or even necessary!  
 + 
 +For example: Addressing all normal user in two departments. 
 + 
 +**False**: just lining up each expression: 
 + 
 +''$usertype -eq '0' -and $department -eq 'AG I' -or $department -eq 'AG O' '' 
 + 
 +This will address all normal user for the department 'AG I' but for 'AG O' it will also address all other possible user types (**including distribution lists**). 
 + 
 +**Right**: To ensure only normal user are addressed in both departments the conditions need to be separated and grouped. 
 + 
 +''$usertype -eq '0' -and ($department -eq 'AG I' -or $department -eq 'AG O')'' 
 + 
 +or, without parentheses, be defined for each condition: 
 + 
 +''$usertype -eq '0' -and $department -eq 'AG I' -or $usertype -eq '0' -and $department -eq 'AG O' '' 
 </WRAP> </WRAP>