Requests
{{baseurl}}/Api/index.php/V8/module/SecurityGroup?filter[deleted][eq]=0
and
{{baseurl}}/Api/index.php/V8/module/SecurityGroup
return duplicate entries.
Expected Behavior
Each security group should be returned exactly once (confirmed with rest v4).
Actual Behavior
The request returns the list of security groups, but most items are included multiple times. It seems like that a group is added again for each user that is related to it (example: a security group contains 5 users. the response contains this security group 5 times instead of once).
Possible Fix
Steps to Reproduce
create 2 security groups
add 3 users to each security group
run the request
the resulting json contains each security group multiple times
Context
This issue has impact on 3rd party integrations.
Your Environment
SuiteCRM Version used: tested with 7.10.20 and 7.10.22
Issue
Requests
{{baseurl}}/Api/index.php/V8/module/SecurityGroup?filter[deleted][eq]=0
and{{baseurl}}/Api/index.php/V8/module/SecurityGroup
return duplicate entries.Expected Behavior
Each security group should be returned exactly once (confirmed with rest v4).
Actual Behavior
The request returns the list of security groups, but most items are included multiple times. It seems like that a group is added again for each user that is related to it (example: a security group contains 5 users. the response contains this security group 5 times instead of once).
Possible Fix
Steps to Reproduce
Context
This issue has impact on 3rd party integrations.
Your Environment