1
Vote

Failed in retrieving the multivalue attribute

description

i had a group which contains 2 members but it only reported one by below code.
is that a bug?
DefaultClient FimCl = new DefaultClient();
            RmAttributeName memberAttribute = new RmAttributeName("ExplicitMember");
           foreach (RmGroup gp1 in FimCl.Enumerate("/Group[DisplayName='security01']"))
           {
               Console.WriteLine("AccountName: {0} ", gp1.AccountName);
               Console.WriteLine("MemeberNumber: {0} ", gp1.Attributes[memberAttribute].Values.Count);
           }

comments

mgercevich wrote Aug 18, 2014 at 5:45 PM

Could this have been a Criteria-based group?

Try replacing:
RmAttributeName memberAttribute = new RmAttributeName("ExplicitMember");

with:
RmAttributeName memberAttribute = new RmAttributeName("ComputedMember");