Get externalMail field from Authz API for activeUser=false
For ex-CERN people externalEmail
value should be used or we'll get a login@cern.ch invalid address
TBD
Also check returned entries for getByEmail as we take the first when it might not be the best choice, example:
"data": [
{
"primaryAccountEmail": "emmanuel.ormancey@cern.ch",
"upn": "ormancey2",
"id": "xxx"
},
{
"primaryAccountEmail": "emmanuel.ormancey@cern.ch",
"upn": "ormancey1",
"id": "xxx"
},
{
"primaryAccountEmail": "emmanuel.ormancey@cern.ch",
"upn": "ormancey",
"id": "xxx",
"activeUser": true
}
]