Mail attribute is needed before users can be added in group contacts. For a Cloud only account, EXO license is needed to populate the attribute.
You can run a GET Request to see if the mail attribute is populated.
For a DirSynced user, you can refer to this steps to make sure that the mail attribute is filled out.
Should you have one, click here