Command ant add-spadmin-user is not taking the expected effect

Document ID : KB000123749
Last Modified Date : 26/12/2018
Show Technical Document Details
Issue:
Command ant add-spadmin-user  is not taking the expected effect. It's not setting the user as Catalog administrator user
Environment:
Service Catalog 17.1
Cause:
There were differences in the email address from the Active directory, Service Catalog and Serivce Desk Manager user ccount. The email addresses were not match.
In the ant add-spadmin-user command he was getting the error: [java] faultString: Exception occurred editing user: Email format is invalid
Resolution:
This was resolved by setting the email address exaclty the same in Active Directory, Service Catalog and Service Desk Manager users.