Skip to main content
Question

Bad request while adding email in box api

  • May 22, 2025
  • 3 replies
  • 20 views

Forum|alt.badge.img

await adminClient.UsersManager.AddEmailAliasAsync(userId, newEmail)

 

The API returned an error [BadRequest | 99qmr0gmpw2t4nu2.0d7224ca725713d27001291f4f5df6fb1] bad_request - Bad Request

3 replies

Forum|alt.badge.img

Hello Amay, 

The error message I'm seeing within our backend logs is "email_alias_domain_not_part_of_this_enterprise". If you require an additional email domain to be added to your Box enterprise, please open a ticket with our support team directly. 

Best, 

Kourtney, Box Developer Advocate


Forum|alt.badge.img

yes that worked, it was of dev environment, getting another issue in prod:

The API returned an error [BadRequest | xdzfx0gtza62njo7.016ebd0c683f5575d59c26ee0c187b686] bad_request.

Thanks,

Amay


Forum|alt.badge.img

Issue for this error is that the email_alias_domain_not_part_of_this_enterprise