Skip to main content
Question

Unable to "roll out" users via the API - Getting "Bad Request" when attempting to set "enterprise" to null

  • December 23, 2025
  • 0 replies
  • 14 views

For a number of years (and in fact, one of the reasons we started with box), we allowed our students to set an external alias in their box account, and when the student leaves, if they have an external email alias, rather than deleting their account, we “release” it to then.

We do this (via the API) by setting their “login” to the external email alias, and then setting “enterprise” to null. Recently, we have been having issues with the process (we only do expires once or twice a year, so it may have been broken for a while).

The API call is returning:

{
"type": "error",
"status": 400,
"code": "bad_request",
"context_info": {
"errors": [
{
"reason": "invalid_parameter",
"name": "user",
"message": "Invalid value 'Box_User [removed by moderator] '."
}
]
},
"help_url": "http://developers.box.com/docs/#errors",
"message": "Bad Request",
"request_id": "cnuct6i8l6ythzj9"
}

I get this error from both my own code (PL/SQL within Oracle) as well as CURL. The calls do not include a “user” parameter at all, let alone, one with “Box_User” included.