This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

User groups are able to reference each other?

Hi everyone,

I noticed that in M-Files Admin it is possible to have 2 user groups reference each other. Has this always been possible? I feel like I have gotten an error message when trying to pull off something like this in earlier M-Files versions, but I'm not sure if I'm just remembering wrong.

I feel like this could result in some funky behaviour if you have, for example, some code that checks if a user is part of a user group or any of it's subgroups.

Example: I have user groups Group1, Group2 and Group3. 

Group1 references Group2 AND Group3
Group 2 references Group1

Now if a code block starts to iterate through Group1, then goes to check the members of Group2, sees that there's Group1, goes to check Group1..and so on. Infinite loop.

You could have a maximum limit for iterations, which helps with the eternal loop thingy, but that doesn't help with the fact that the iterations will be depleted and Group3 was never checked.



// Diego