none
How to Query the members of a group from the FIM Portal using Powershell script (FIM Automation) RRS feed

  • Question

  • Hi,

    We want to list down the active members of a group using FIM Automation.

    We tried with the below script but we did not get the list of members from the group.

     if(@(Get-PSSnapin | ? { $_.Name -eq "FIMAutomation" } ).Count -eq 0)

     {
         Add-PSSnapin FIMAutomation;
     }
    $groups = Export-FIMConfig -customConfig "/Group[AccountName='GroupName']" -URI "http://localhost:5725/resourcemanagementservice"  -OnlyBaseResources
    foreach ($group in $groups)
                {

                        $displayName = (($group.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "CurrentMembership"}).Value)
                      echo $displayName

                }

    We tried with the attributes account name,display name and group type of the group, we got the output but when we tried to get the members of the group, we did not get the output. 

    Kindly assist.


    Rajesh Kumar NSR, FIM administrator, Wipro Technologies. India.

    Tuesday, May 9, 2017 9:27 AM

All replies