Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 6944

Reading User Attribute showing Empty Value

$
0
0

Hello Everyone,

We have 2 MIM portal servers which is load balanced. I create and new attribute (RegID) on User Resource and created necessary bindings to display them on the Create/View/Edit RCDC. 

The problem I have is, When I user PowerShell script to Read the values of the attribute its showing empty value. 

$MIMUrl = "http://localhost:5725/resourcemanagementservice";

$Filter = "/Person[RegID = '78901']"
$ET = Export-Fimconfig -uri $MIMUrl -onlyBaseResources -customconfig $Filter -ErrorAction SilentlyContinue;
$ET | Foreach-Object {
       $RegID = ($_.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "RegID"}).Value;
    $AccountName= ($_.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "AccountName"}).Value;
       Write-Host ($RegID)
#       Write-Host ($AccountName)
}

When running above code, It fetched the person object and displayed AccountName but not RegID

As I mentioned, its load balanced,

Running on Server 1 : Returns both RegID and AccountName

Running on Server 2 : Return only Account Name but not RegID.

Its Wired, Could you please help?

Thanks

Durai


Viewing all articles
Browse latest Browse all 6944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>