FIM ScriptBox Item
Summary
This script may be used to create Attributes and Bindings in the FIM Portal Schema based on information in a CSV file. The script comes in two parts:
If you are creating new attributes with bindings then you must run the process twice. The first time the attributes will be created, and the second time the bindings will be created, using the GUIDs of the new attributes. The script does not currently create Resource objects. Any Resource types specified in the CSV file must already exist. Usage:
Script Code
Please download using the following link. The package includes template files which must be located in the same folder as Import-SchemaCSV.ps1.
Richard Mueller edited Revision 5. Comment: Replaced RGB values with color names in HTML to restore colors
Richard Mueller edited Revision 4. Comment: Removed (en-US) from title, added comment
Craig Lussier edited Revision 3. Comment: added en-US to tags and title
Carol,
Great script, I was just about to create one to do the same thing when I came across this one. When you have over 70 custom attributes its alot easier to write a script than do it manually :)
A couple of issues I had though
1) the Sample csv file has a header of MultiValue where the script requires MultiValued ( addtional D )
2) Also DateTime is not supported - 'DateTime' {$FIMAttrDataType = "DateTime"} needs to be added to the switch ($row.DataType) - at the moment if you specify DateTime in the CSV it seems to create the objects with the last attributes type :)
Thanks for the script though very helpful