fix group API: unable to create a new group with two targets
See ID#18622899
currently we get the following error, when trying to create a group with both Active Directory and LDAPS as a target:
POST https://iamws.ethz.ch/groups
{
"name": "ID-LEOMED-LZ-2",
"description": "LeoMed Landing Zone",
"admingroup": "ID SIS",
"targets": [
"Active Directory",
"LDAPS"
],
"groupADOU": null,
"certificationPeriod": "No recertification",
"certificationNote": "no recertification needed",
"groupManager": []
}
Result:
400
{'msg': "Group ADOU 'EthLists' can not be set as default when LDAPS TS is choosen in payload."}