Username Change Authorization WorkFlow
HelloI have setup an Authorization workflow to concatenate the samaccount name based upon firstname, middle initial, and last name and check AD to see if the value is unique. This seems to work fine when creating new users, but I also want to apply when someone changes a users firstname, middle, name or lastname. The workflow runs but uses thealready set values rather than the proposed changed ones. Its as if authrozation workflows cannot see the requested changed attribute values. Am I missing something ? Is there a way to grabe the proposed changed values ia a workflow ?Thanks
September 3rd, 2009 5:58pm
Hi Kevin,Check the WorkflowDictionary on the workflow object, or WorkflowData in an XPath query (e.g. [//WorkflowData/FirstName]). I think the changes should be in there.Joe
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2009 7:55pm
Joethanks for the quick response. I checked the [//WorkflowData/FirstName] value and it is null while running the authorization workflow. Isn't the some colletion containing the propsed changed values that I can use ?
September 4th, 2009 4:18am
Hi Kevin,Sorry about that. I ran a sample request and checked it, and it looks like the FirstName is stored in the RequestParameter attribute of the Request object. Unfortunately, this attribute is stored in XML:
<RequestParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="UpdateRequestParameter"><Calculated>false</Calculated><PropertyName>FirstName</PropertyName><Value xsi:type="xsd:string">Rolanda</Value><Mode>Modify</Mode></RequestParameter>Not sure if you could extract it (maybe with a regex?) without building a custom workflow.Good luck,Joe
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2009 5:28am
Thanks JoeI'll give the requestParameters a shot
September 4th, 2009 5:49am