Sometimes you submit a Request and FIM flat out denies it. Finding out why can be a bit of a pickle. The two snippets below show the attributes and bindings per object type that have validations on them.

Add-PSSnapin fimautomation
ipmo .\Desktop\FimPowerShellModule.psm1

###
### Show Attributes with RegEx Validation
###
Export-FIMConfig -OnlyBaseResources -CustomConfig @"
/BindingDescription
[
    BoundObjectType= /ObjectTypeDescription
    [
        Name='Person'
    ]
]
/BoundAttributeType
"@ | 
Convert-FimExportToPSObject | 
Where-Object {$_.StringRegex} |
Format-Table -AutoSize DisplayName,StringRegex

###
### Show Bindings with RegEx Validation
###
Export-FIMConfig -OnlyBaseResources -CustomConfig @"
/BindingDescription
[
    BoundObjectType= /ObjectTypeDescription
    [
        Name='Group'
    ]
] 
"@ | 
Convert-FimExportToPSObject | 
Where-Object {$_.StringRegex} |
Format-Table -AutoSize DisplayName,StringRegex

Last edited Mar 20, 2014 at 8:48 PM by CraigMartin, version 1

Comments

No comments yet.