ECMS-6115: Permission parameter not taken into account for Group drives

Fix description:
  - Fix incase groupDrive is null