Removing a user from a filtered distribution group?
Hi, I'm new to FIM and one of the requirements I have is to remove people from distribution lists when their status is On Leave. In FIM, distribution groups can be created by using a member filter, which can say things like “all members have the last name ‘Jones’”. In that case, I'm not sure how to remove the user from the group. I’m wondering if it might be best to add a workflow on distribution groups that updates whatever filter value is set with an extra criteria along the lines of “and status <> ‘On Leave’”. Any thoughts on this? Is there a better method that I'm not aware of? Many thanks for any input. I appreciate it. Sami
August 6th, 2010 3:37pm

In the criteria filter, you could add something like: - user the match "all" of the following conditions - last name "is" Jones - status "is not" on leave You just have to make sure the you flow the status value to an attribute in the portal so it's available for your filter. MarkMark Creekmore - Blue Chip Consulting Group
Free Windows Admin Tool Kit Click here and download it now
August 6th, 2010 11:43pm

Hi Mark, I don't think I explained things well. We are going to have managers create their own DGs and I'm pretty sure they won't even think about adding that parameter. So, I was thinking a workflow could always check to make sure that filter criteria is there and, if not, add it. Thank you for your help! Sami
August 7th, 2010 12:09am

I assume that this would be possible via workflow, but probably not a trivial task. The filter would be an XML representation of an XPath filter. Something like this: Filter: <Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect" xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumerat ion">/Person[LastName = 'Jones']</Filter> You would have to programmatically change the filter to something like this: Filter: <Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect" xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Person[(LastName = 'Jones') and (not(Status = 'On Leave'))]</Filter> It might be easier to use something like PowerShell to verify that the group has the “and (not(Status = 'On Leave'))” included, but that would be an out of band process that would have to run. There are pros and cons either way. Mark Mark Creekmore - Blue Chip Consulting Group
Free Windows Admin Tool Kit Click here and download it now
August 7th, 2010 12:31am

Thanks, Mark. I got it to work with a custom workflow. I am just adding the extra XPath filter as you suggested. I appreciate the help! Sami
August 9th, 2010 2:46pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics