Get the total number of members of a group
Hello
I am trying to get the total number of members of a WTGroup in Windchill via code, so the sum of all users in a group and all its subgroups. Actually I need to check if the group size is bigger than a specified limit.
I tried to use .members() but it always fails with a PrincipalRepairFailedException error (Cannot process user because a related disconnected participant exists in the database). I have tried using OrganizationServicesHelper.members() or group.members() but it all leads to the same error.
Does anyone know how to solve this issue. I do not need to know the user names and attributes, I just need to find the total amount or if the member amount of a group is greater than a specified limit.
Best regards

