XPATH

What the %_ is the deal with wildcards in FIM Queries in the latest hotfix?

Ok I am not actually swearing, nor are those substitute words, rather % and _ are two characters that until hotfix rollup package (build 4.0.3594.2) could be used to perform some much needed and cool searches for sets, search scopes, groups and 3rd party client queries against FIM. Such as querying for the presence of string attributes. I am sure what happened is that someone created a resource with an underscore in the name and then couldn’t search for it.

Continue reading

What the %_ is the deal with wildcards in FIM Queries in the latest hotfix?-Comments

David - just came across your post. Others readin… Anonymous - Jan 1, 2012David - just came across your post. Others reading it now may wish to follow this thread on the FIM Forum where the issue continues to be discussed at length. Cheers Bob http://social.technet.microsoft.com/Forums/en-US/ilm2/thread/ec15b1d0-3f4c-42fd-a833-3983330be963 10 years on David and your post came in handy just now - learned something new about the [_] thing in xpath statements :) - kudos - just the ticket!

Continue reading

Embedding comments in your XPATH Filters

One thing I love to do is provide self-documenting code and configurations. Well when I have to customize sets the XPATH filter can get a bit complex so I recently found a way to comment the XPATH Filter in my sets and groups: /Person[starts-with(DisplayName,'%')] By using to enclose my comments and only after the last closing ] of the predicate I can comment on the filter itself. The following will error (don’t put the comment inside the predicate [].

Continue reading

FIM Sets, XPATH, finding nulls with Strings

Watch out for the latest FIM hotfix. It appears i… Chris Clayton - Nov 4, 2011Watch out for the latest FIM hotfix. It appears it will treat the % as a literal rather than a SQL wildcard.

Continue reading

FIM Sets, XPATH, finding nulls with Strings

A little while ago I encountered some rather strange behavior of a Set vs. the XPATH query in FIM 2010. Using the Export-FIMConfig with the -onlyBaseResources -CustomConfig switches I run the following query to see if there are any users without a DisplayName /Person[not(starts-with(DisplayName,''))] It showed 20 So then I created a set, called “~ People with no displayname”, with that as the custom filter. I checked it doesn’t violate any of the limitations listed in the Business Policy Modeling doc (which I must say is a pretty good doc)

Continue reading