Skip to content

Removing a reference value

I needed to delete all the Managers from people in the FIM Portal where a particular Manager was set. I had blithely assumed this would be easy with the FIM PowerShell plugin – sadly, not so.

You can clear a string value easily enough by setting it to an empty string. So this works:

$ImportObject = ModifyImportObject -TargetIdentifier $ID -ObjectType 'Person'
SetSingleValue -ImportObject $ImportObject -AttributeName 'MiddleName' -NewAttributeValue ''
import-fimconfig -ImportObject $ImportObject

However change that string attribute to a single-valued reference attribute like Manager and you get this helpful error:

Import-FIMConfig : Failure when making web service call.

SourceObjectID = guid
Error = The web service client has encountered the following class of error: Other
Details: Additional Text Details: Request could not be dispatched.

Note that I’m only having this problem because my reference attribute is single-valued – for multi you can actually delete any specific value, including the last one, essentially nulling the field. But for single-valued you can’t use the Delete operation – you have to use Replace, and it won’t let you replace it with a null or empty string.

Eventually I figured out that I could actually delete the value using a workflow with just the OOB Function Evaluator activity. Set the reference attribute to a space (not an empty string for some reason – I had to put a space as the string), run the workflow against the set of people with the Manager I needed to remove, and I got the job done.

Update: It turns out that setting to a space also works for nulling a Boolean attribute.

{ 4 } Comments

  1. Ross | May 8, 2013 at 3:52 pm | Permalink

    Hey Carol, do you know of a fast way to clear a multivalue reference field?

    So far, I have to read the field, then do a remove on all objects in the field… There has to be a better way! (FIM catch-cry)

    – Ross

  2. Carol | May 8, 2013 at 9:13 pm | Permalink

    That’s the only way I’ve found too.

  3. pavani | September 16, 2014 at 9:36 am | Permalink

    Is there any way to change the single valued property to multivalued property in FIM after creation of the attribute.Please suggest if you have any related works

  4. Carol | September 16, 2014 at 8:25 pm | Permalink

    Unfortunately not – you have to create a new attribute.

Post a Comment

Your email is never published nor shared. Required fields are marked *

Spam comments will be blocked by Akismet

*

generic 1mg Finpecia online Arimidex cheap online canadian pharmacy Finasteride without a prescription or Buy Finasteride without a prescription to ship overnight Finasteride overnight us delivery purchase Finasteride visa buy cheapest Cytotecbuy no prior prescription Cytotec Tamoxifen for sale Furosemide 40 mg without prescription Cytotec no prescription to buy buy Requip 2mg order Seroquel online canada buy Clomiphene australia buy Seroquel generic order no prescription Metformin online Requip buy Seroquel purchase overnight delivery Seroquel no prescription needed 50mg buy seroquel online without prescription from canada no prescription generic seroquel seroquel for sale canadian pharmacy no prescription seroquel buy seroquel online uk buy seroquel 25 mg seroquel online 50mg how to buy seroquel online seroquel online uk seroquel 50mg canada buy generic seroquel seroquel no script seroquel online without a prescription can you buy seroquel online buy seroquel usa buy seroquel in canada Prednisone on line buy Prednisone overnight buy cheap Prednisone online free consult buy Prednisone on line amex uk buy Prednisone buy cod Prednisone order overnight Prednisone medikament Prednisone Prednisone order online buy Prednisone no scams buy Prednisone mastercard online purchase Prednisone buy cheap Prednisone no prescription buy Prednisone amex online without rx buy Prednisone canada purchasing Prednisone without a script where to buy generic Prednisone online without a prescription Prednisone drug non rx cheap Prednisone order Prednisone cheap overnight fedex Prednisone overnight without a prescription buy Prednisone 20 mg buy Prednisone where Prednisone without prescription overnight shipping purchasing Prednisone without a script Prednisone without rx overnight shipping where to purchase Prednisone no prescription no fees Prednisone online overnight delivery cod Prednisone prescription order order Prednisone without rx from us pharmacy buy Prednisone pills in toronto buy Prednisone online online pharmacies Prednisone buy Prednisone no prescriptions buy Prednisone once a day order Prednisone pay pal online without rx buy Prednisone where buy line Prednisone best finpecia online pill Cytotec purchase overnight delivery where buy Lisinopril purchasing finpecia with overnight delivery how to purchase Requip buy Arimidex no prescription fast delivery no prescription generic Requip Requip generic names Requip ordering buy Requip in the us Arimidex 1 mg order online Requip 0,5 mg without a prescription Arimidex tablets 1 mg no prescription australia Arimidex 1mg tablets express shipping buy Requip online australia ordering Requip from canada without a prescription buy Requip online without a prescription buy Requip pills no prescription Requip generic no prescription Lisinopril overnight cod cheap order rx metformin prednisone 40 mg cheapest place to buy Metformin purchase Metformin online Maxalt no prescription needed 10mg Maxalt 10mg canada where to buy Maxalt uk buy generic Maxalt canada buy metformin cod discount Cytotec order Cytotec uk purchase Cytotec online no membership overnight shipping best Cytotec online pill Valacyclovir Cytotec want to buy Cytotec in usa Cytotec online overnight delivery cod buy cytotec with a mastercard order Cytotec no rx how to order Cytotec online without a rx how to buy Metformin without a prescription Metformin price buy Alli without prescription