PIM-2317 : update the groups property (MongoDB support)

| Q                   | A
| ------------------- | ---
| Bug fix?            | N
| New feature?        | Y
| BC breaks?          | N
| Tests pass?         | Y
| Scenarios pass?     | Y
| Checkstyle issues?  | N
| Changelog updated?  | N
| Fixed tickets       | PIM-2317
| Doc PR              |