Error retrieving RMGroup.Owner/Rmgroup.ExplicitMember/RmGroup.ComputedMember

Apr 28, 2015 at 7:28 AM
Hi All,

I am receiving a casting exception when trying fetch the RMReference value for Owner/ExplicitMember/ComputedMember.

I am doing the following

foreach(RmReference rm in Rmgroup.ExplicitMembers)

At this line I receive an exception - Cannot implicitly convert object (SystemString) to System.RmReference.

Please provide a solution to fix this issue.
May 13, 2015 at 7:40 PM
I think you are looking for:

var rmgroup = client.Enumerate("/Group[DisplayName='Test Group']").FirstOrDefault();
foreach (RMReference rm in rmgroup.ExplicitMember.Values)
{ ... }