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

*

misoprostol online pharmacy

cytotec order on line

cytotec without prescriptions in usa

no prescription generic cytotec

indian cytotec

cytotec purchase overnight delivery

generic cytotec without prescription

no prescription cytotec

cytotec sale no prescription

where to purchase cytotec oral cheap

cytotec order on line

200 mg cytotec

buy cytotec online with no perscription

where can i buy cytotec without a prescription

order cytotec overnight

buy cytotec without a percsription

buy misoprostol australia

100 mg cytotec

cytotec no rx

cytotec online purchase

cytotec for sale

cytotec generic

cytotec oral tablet no prescription discount

how to get cytotec

cytotec online cheap

buy misoprostol cheap without perscription

buying cytotec online

buy cytotec 200mg

order cytotec online consultation

cytotec oral tablet no prescription discount

cheap prices on cytotec

non prescription cytotec

how to by cytotec online

online pharmacy no prescription cytotec

do you need a prescription for cytotec in mexico

how to get cytotec online no prescription in 100 days

Where can i buy some cytotec online only using cash or money orders

cytotec no prescription needed 200mg

overnight shipping on generic cytotec

buy cytotec online no prescription

cytotec precio

order cytotec without rx

buy cytotec next day delivery

order cytotec no prescription

generic cytotec no prescription

cytotec generic

generic cytotec online no prescription

cytotec order

real cytotec without prescription

cytotec buy online

order cytotec online overnight shipping

cytotec buy online no prescription

cytotec online order

canada cytotec

order generic cytotec online no prescription

online pharmacy cytotec