> ## Documentation Index
> Fetch the complete documentation index at: https://docs.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deprovision Users with the Box API or CLI

<div className="article_labels_list" style={{display: 'none'}} dangerouslySetInnerHTML={{__html: "Admin , Article , Product Utilization , Established , Instruction"}} />

## **Introduction**

**Objective** <br />
The goal of this Guide is to walk you through the API calls needed to deprovision managed users in Box. The specific API calls you will need to make are outlined below.

**Caveats** <br />
This Guide will *not* cover specifics on how to build the business logic within the script or application that will make the API calls. You can find helpful SDKs in several web programming languages on our [Developer portal](https://developer.box.com/guides/tooling/sdks).

## **Box Command Line Tool for Deprovisioning**

If your use case is just a one-time deprovisioning of users and would prefer avoiding the setup process of SDK management, [Box's Command Line Tool](https://developer.box.com/guides/tooling/sdks/cli/) has functionality to deprovision users. Developers should feel comfortable working on the command line to use this application.

You can get started with Box's CLI tool by visiting the [Getting Started documentation.](https://github.com/box/boxcli#getting-started)

If you decide to go with this option for deprovisioning users instead of using our SDKs, feel free to skip the **Prerequisites** section and jump straight into the **Deprovisioning Process** section.

## **Prerequ****i****sites**

**Create your App** <br />
Before you begin, please ensure that you have a Box app setup in the Box Developer portal. The [Box Developers Getting Started Guide](https://developer.box.com/guides/getting-started) will help you through this process, or if you want to jump right into it you can go ahead and [create an app](https://app.box.com/developers/console).

**Authentication** <br />
One of the biggest challenges developers can have when first using the Box API is authentication. Box uses OAuth 2.0 to authorize your app to perform actions in Box on behalf of a specific user. In this case, we will want this user to be any Admin (or Co-Admin) in your Box instance. The OAuth process can be challenging to grasp, so please reference our [Authentication with OAuth](https://developer.box.com/guides/authentication/oauth2) guide before getting started. The output of the OAuth authentication process will be an Access Token and a Refresh Token, and the Access Token will be used in *every* API call you make to Box.

**As-User Functionality** <br />
For certain steps below, your application will need the ability to perform API calls on behalf of managed users. This can be enabled in the configuration tab of the Box Developer Console. If you're using JWT auth please ensure you reauthorize your application and obtain a new token pair for the change to take effect.

**Service Account** <br />
If you want to move users' content to another Box user before deletion, this user account will need to be created in Box before running this script. You will also need to know the Box user ID of this user, which can be found programmatically via a call to the [Get Enterprise Users](https://developer.box.com/reference/get-users/) endpoint (or by working with your Box representative).

## **Deprovisioning Process**

There are several steps to deprovisioning a user in Box. These steps may be optional depending on how you want to manage the existing content owned by the user. Which steps are required will depend on how you want to handle this content. Below is an outline of all potential steps:

* Move User to Inactive Status
  * This will immediately log the user out of all apps (Box Sync, Mobile, etc)
  * Collaborators on folders owned by this user will not be able to access collaborated content while the user is inactive
* Move remaining content to a generic service account (or another user)
* Delete or downgrade the user account (and any content left in their account)

You can find a detailed explanation of each step, including all API calls needed, in the sections below.

## **Box Command Line Usage for** **Deprovisioning** **Users**

|    |                                              |                                                                |                                                                                               |
| -- | -------------------------------------------- | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|    | **Action**                                   | **Command Line Entry**                                         | **Notes**                                                                                     |
| 1. | List All Users in Box                        | \$ box users                                                   | Add "--csv" flag to format.  Add "-s" to save file.                                           |
| 2. | Migrate Content owned by a Single User       | \$ box users:transfer-content \{USERID} \{NEWUSERID}           |                                                                                               |
| 3. | Migrate Content for bulk users in one action | \$ box users:transfer-content --bulk-file-path='./example.csv' | Expected Input (Example):  546781,100001    This moves content from user "546781" to "100001" |
| 4. | Delete Single User                           | \$ box users:delete \{USERID}                                  |                                                                                               |
| 5. | Delete bulk users in one action              | \$ box users:delete --bulk-file-path='./example.csv'           | Expected Input (Example):  546781    This deletes user with ID "546781"                       |

## **Box SDK Usage for** **Deprovisioning** **Users**

**Get a List of All Users in Box**

User deprovisioning requires that you inactivate AND/OR delete a user in Box. In order to know which Box users have been deactivated in Active Directory, you must compare the status of your Box users to the status of your Active Directory users. This step allows you to get a list of all users in Box, including their user ID and email address. You can use their email address to poll Active Directory and see if the user has been deactivated there. If so, you will wan to use the Box User ID in subsequent parts of this guide. All calls should be done from an Admin account!

<table class="resizable" draggable="false" data-struct-id="tablefc25f5afe8134139be738b213ec30aa0" data-node-type="structure">
  <tbody>
    <tr data-node-type="structure">
      <td data-node-type="structure" data-table-cell="struct-tablefc25f5afe8134139be738b213ec30aa0_rowce3b645ca7b749a487f443ef7f9572a6_colec1dd9b9a8c7473ca1d1aeedc255e0f7"> </td>

      <td data-node-type="structure" data-table-cell="struct-tablefc25f5afe8134139be738b213ec30aa0_rowce3b645ca7b749a487f443ef7f9572a6_cola7a8df871c3a41ae88f8ff2fbd905cc4">
        <div id="magicdomid93" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowce3b645ca7b749a487f443ef7f9572a6_cola7a8df871c3a41ae88f8ff2fbd905cc4 struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>Action</strong></span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablefc25f5afe8134139be738b213ec30aa0_rowce3b645ca7b749a487f443ef7f9572a6_col32503c98a0f44280b464190f82c2625f">
        <div id="magicdomid94" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowce3b645ca7b749a487f443ef7f9572a6_col32503c98a0f44280b464190f82c2625f struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>API URL Endpoint</strong></span></div>
        </div>

        <div id="magicdomid95" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowce3b645ca7b749a487f443ef7f9572a6_col32503c98a0f44280b464190f82c2625f struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983 font-color-000000 font-size-small i"><em>(links to documentation)</em></span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablefc25f5afe8134139be738b213ec30aa0_rowce3b645ca7b749a487f443ef7f9572a6_col2f2cd393806b4fac90ab39421beb1057">
        <div id="magicdomid96" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowce3b645ca7b749a487f443ef7f9572a6_col2f2cd393806b4fac90ab39421beb1057 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>Additional Notes</strong></span></div>
        </div>
      </td>
    </tr>

    <tr data-node-type="structure">
      <td data-node-type="structure" data-table-cell="struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_colec1dd9b9a8c7473ca1d1aeedc255e0f7">
        <div id="magicdomid97" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_colec1dd9b9a8c7473ca1d1aeedc255e0f7 struct-prop-table-col_width_percentage_5" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">1.</span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_cola7a8df871c3a41ae88f8ff2fbd905cc4">
        <div id="magicdomid98" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_cola7a8df871c3a41ae88f8ff2fbd905cc4 struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">Find the Box User ID for the user we want to act upon</span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_col32503c98a0f44280b464190f82c2625f">
        <div id="magicdomid99" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_col32503c98a0f44280b464190f82c2625f struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><a href="https://developer.box.com/reference/get-users-id/"><span class="author-240083983 link-MTQ3MTU3NTU4OTgxMC1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjZ2V0LWFsbC11c2Vycy1pbi1hbi1lbnRlcnByaXNl">GET</span></a></div>
        </div>

        <div id="magicdomid100" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_col32503c98a0f44280b464190f82c2625f struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker">
            <span class="author-240083983 link-MTQ3MTU3NTU4OTgxMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjZ2V0LWFsbC11c2Vycy1pbi1hbi1lbnRlcnByaXNl" /><a href="https://developer.box.com/reference/get-users-id/" target="_blank" rel="noopener noreferrer"><span class="author-240083983 link-MTQ3MTU3NTU4OTgxMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjZ2V0LWFsbC11c2Vycy1pbi1hbi1lbnRlcnByaXNl">/users</span></a>
          </div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_col2f2cd393806b4fac90ab39421beb1057">
        <div id="magicdomid101" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_col2f2cd393806b4fac90ab39421beb1057 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker">
            <span class="author-240083983">Request </span><span class="author-240083983"><strong>URL</strong></span><span class="author-240083983"> Parameters (optional)</span>
          </div>
        </div>

        <div id="magicdomid102" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_col2f2cd393806b4fac90ab39421beb1057 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">filter\_term=</span><span class="author-240083983 font-color-26c281 font-size-medium">\{email\_address}</span>
              </li>
            </ul>
          </div>
        </div>

        <div id="magicdomid103" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_col2f2cd393806b4fac90ab39421beb1057 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet3 lineAttribMarker">
            <ul class="list-bullet3">
              <li class=""><span class="author-240083983">Returns only the user object that matches the user in question</span></li>
            </ul>
          </div>
        </div>

        <div id="magicdomid104" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_col2f2cd393806b4fac90ab39421beb1057 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker"><span class="author-240083983">Response:</span></div>
        </div>

        <div id="magicdomid105" class="ace-line struct-tablefc25f5afe8134139be738b213ec30aa0_rowfd659760ab944052b78122458c9e4868_col2f2cd393806b4fac90ab39421beb1057 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">User object. Contains the login (email address) and </span><span class="author-240083983 font-color-9f3fed font-size-medium">user ID</span><span class="author-240083983"> of the user in question.</span>
              </li>
            </ul>
          </div>
        </div>
      </td>
    </tr>
  </tbody>

  <tfoot class="unselectable-structure-node table-col-resize-dragger-container disableSelectable" contenteditable="false" data-node-type="structure" />
</table>

**Move Remaining Content to a Generic Service Account**

Any remaining content left in the user's account (or all of it, if you haven't affected any content up to this point) can be moved to a generic service account. This will need to be an existing user in Box and you will need the user ID (see "Prerequisites" above). We also want to create a container folder to store all of the user's content in, to make it easy to find content previously owned by the folder in the future.

All calls should be done from an Admin account!

<table class="resizable" draggable="false" data-struct-id="tablea5e16ea0c4974433a83a91fed03aca60" data-node-type="structure">
  <tbody>
    <tr data-node-type="structure">
      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_row5a47a33efc5b41148a69e8ef9ca02831_col1ec715c677aa4ad6b1b50f2bda2cbe85"> </td>

      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_row5a47a33efc5b41148a69e8ef9ca02831_cole83ad8d3e7fc497ba35a0c083a24476c">
        <div id="magicdomid114" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5a47a33efc5b41148a69e8ef9ca02831_cole83ad8d3e7fc497ba35a0c083a24476c struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>Action</strong></span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_row5a47a33efc5b41148a69e8ef9ca02831_col1424001bb2e245c5bad60ebbb709a360">
        <div id="magicdomid115" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5a47a33efc5b41148a69e8ef9ca02831_col1424001bb2e245c5bad60ebbb709a360 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>API URL Endpoint</strong></span></div>
        </div>

        <div id="magicdomid116" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5a47a33efc5b41148a69e8ef9ca02831_col1424001bb2e245c5bad60ebbb709a360 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983 font-color-000000 font-size-small i"><em>(links to documentation)</em></span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_row5a47a33efc5b41148a69e8ef9ca02831_colee088c47af4849cc8f851f9dc7164eb4">
        <div id="magicdomid117" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5a47a33efc5b41148a69e8ef9ca02831_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>Additional Notes</strong></span></div>
        </div>
      </td>
    </tr>

    <tr data-node-type="structure">
      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_col1ec715c677aa4ad6b1b50f2bda2cbe85">
        <div id="magicdomid118" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_col1ec715c677aa4ad6b1b50f2bda2cbe85 struct-prop-table-col_width_percentage_5" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">1.</span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_cole83ad8d3e7fc497ba35a0c083a24476c">
        <div id="magicdomid119" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_cole83ad8d3e7fc497ba35a0c083a24476c struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">Move all of user's content to Service Account</span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_col1424001bb2e245c5bad60ebbb709a360">
        <div id="magicdomid120" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_col1424001bb2e245c5bad60ebbb709a360 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><a href="https://developer.box.com/reference/put-users-id/" target="_blank" rel="noopener noreferrer"><span class="author-240083983 font-color-000000 font-size-medium link-MTQ3MTYyMDMwMTUwMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjbW92ZS1mb2xkZXItaW50by1hbm90aGVyLXVzZXJzLWZvbGRlcg==">PUT </span><span class="author-240083983 link-MTQ3MTYyMDMwMTUwMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjbW92ZS1mb2xkZXItaW50by1hbm90aGVyLXVzZXJzLWZvbGRlcg==">/users/</span><span class="author-240083983 b link-MTQ3MTYyMDMwMTUwMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjbW92ZS1mb2xkZXItaW50by1hbm90aGVyLXVzZXJzLWZvbGRlcg=="><strong>\{USER\_ID}</strong></span><span class="author-240083983 link-MTQ3MTYyMDMwMTUwMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjbW92ZS1mb2xkZXItaW50by1hbm90aGVyLXVzZXJzLWZvbGRlcg==">/folders/</span><span class="author-240083983 font-color-000000 font-size-medium link-MTQ3MTYyMDMwMTUwMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjbW92ZS1mb2xkZXItaW50by1hbm90aGVyLXVzZXJzLWZvbGRlcg==">0</span></a></div>
        </div>

        <div id="magicdomid121" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_col1424001bb2e245c5bad60ebbb709a360 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker" />
        </div>

        <div id="magicdomid122" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_col1424001bb2e245c5bad60ebbb709a360 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker">
            <span class="author-240083983">\*where </span><span class="author-240083983"><strong>\{USER\_ID}</strong></span><span class="author-240083983"> is the Box ID of the user whose content is being moved (from the above step)</span>
          </div>
        </div>

        <div id="magicdomid123" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_col1424001bb2e245c5bad60ebbb709a360 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker" />
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_colee088c47af4849cc8f851f9dc7164eb4">
        <div id="magicdomid124" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker">
            <span class="author-240083983">Request </span><span class="author-240083983"><strong>Body</strong></span><span class="author-240083983"> Parameters:</span>
          </div>
        </div>

        <div id="magicdomid125" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">owned\_by: \{ id: </span><span class="author-240083983 font-color-ea1f43 font-size-medium">\<USER\_ID of Service Account></span><span class="author-240083983"> }</span>
              </li>
            </ul>
          </div>
        </div>

        <div id="magicdomid126" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker"><span class="author-240083983">Response:</span></div>
        </div>

        <div id="magicdomid127" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_rowc5e60a1d17b344a48b004ddaff35068c_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">Status code: 200 AND Folder object. Contains the </span><span class="author-240083983 font-color-9f3fed font-size-medium">folder ID</span><span class="author-240083983"> of the newly created folder.</span>
              </li>
            </ul>
          </div>
        </div>
      </td>
    </tr>

    <tr data-node-type="structure">
      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_col1ec715c677aa4ad6b1b50f2bda2cbe85">
        <div id="magicdomid128" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_col1ec715c677aa4ad6b1b50f2bda2cbe85 struct-prop-table-col_width_percentage_5" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">2.</span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_cole83ad8d3e7fc497ba35a0c083a24476c">
        <div id="magicdomid129" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_cole83ad8d3e7fc497ba35a0c083a24476c struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">Rename the folder to include user's email address</span></div>
        </div>

        <div id="magicdomid130" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_cole83ad8d3e7fc497ba35a0c083a24476c struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong><em>(Optional)</em></strong></span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_col1424001bb2e245c5bad60ebbb709a360">
        <div id="magicdomid131" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_col1424001bb2e245c5bad60ebbb709a360 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><a href="https://developer.box.com/reference/put-folders-id/" target="_blank" rel="noopener noreferrer"><span class="author-240083983 link-MTQ3NTIwMDA1Nzg5MC1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWluZm9ybWF0aW9uLWFib3V0LWEtZm9sZGVy">PUT</span></a></div>
        </div>

        <div id="magicdomid132" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_col1424001bb2e245c5bad60ebbb709a360 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 link-MTQ3NTIwMDA1Nzg5MC1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWluZm9ybWF0aW9uLWFib3V0LWEtZm9sZGVy lineAttribMarker"><a href="https://developer.box.com/reference/put-folders-id/" target="_blank" rel="noopener noreferrer"><span class="author-240083983 link-MTQ3NTIwMDA1Nzg5MC1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWluZm9ybWF0aW9uLWFib3V0LWEtZm9sZGVy">/folders/</span><span class="author-240083983 b link-MTQ3NTIwMDA1Nzg5MC1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWluZm9ybWF0aW9uLWFib3V0LWEtZm9sZGVy"><strong>\{</strong></span><span class="author-240083983 b font-color-000000 font-size-medium link-MTQ3NTIwMDA1Nzg5MC1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWluZm9ybWF0aW9uLWFib3V0LWEtZm9sZGVy"><strong>FOLDER\_ID</strong></span><span class="author-240083983 b link-MTQ3NTIwMDA1Nzg5MC1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWluZm9ybWF0aW9uLWFib3V0LWEtZm9sZGVy"><strong>}</strong></span></a></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4">
        <div id="magicdomid133" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker"><span class="author-240083983">Request Header:</span></div>
        </div>

        <div id="magicdomid134" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">As-User: </span><span class="author-240083983 font-color-ea1f43 i"><em>\<USER\_ID of Service Account></em></span>
              </li>
            </ul>
          </div>
        </div>

        <div id="magicdomid135" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet3 lineAttribMarker">
            <ul class="list-bullet3">
              <li class=""><span class="author-240083983">This is optional, depending on which user the application is authenticated against.</span></li>
            </ul>
          </div>
        </div>

        <div id="magicdomid136" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker">
            <span class="author-240083983">Request </span><span class="author-240083983"><strong>Body</strong></span><span class="author-240083983"> Parameters:</span>
          </div>
        </div>

        <div id="magicdomid137" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">folder\_id: </span><span class="author-240083983 font-color-9f3fed font-size-medium i"><em>\<folder ID returned by previous call above></em></span>
              </li>
            </ul>
          </div>
        </div>

        <div id="magicdomid138" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">name: </span><span class="author-240083983 font-color-000000 font-size-medium i"><em>\<new folder name of choice></em></span>
              </li>
            </ul>
          </div>
        </div>

        <div id="magicdomid139" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet3 lineAttribMarker">
            <ul class="list-bullet3">
              <li class=""><span class="author-240083983">Can include previous user's email address or another attribute for tracking purposes</span></li>
            </ul>
          </div>
        </div>

        <div id="magicdomid140" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker"><span class="author-240083983">Response:</span></div>
        </div>

        <div id="magicdomid141" class="ace-line struct-tablea5e16ea0c4974433a83a91fed03aca60_row5560468975274ae282754c965ff567a3_colee088c47af4849cc8f851f9dc7164eb4 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">Status code: 200. Indicates that folder's name has been updated correctly. </span><span class="author-240083983">If folder is not updated correctly, this folder should be flagged to be named manually</span><span class="author-240083983">.</span>
              </li>
            </ul>
          </div>
        </div>
      </td>
    </tr>
  </tbody>

  <tfoot class="unselectable-structure-node table-col-resize-dragger-container disableSelectable" contenteditable="false" data-node-type="structure" />
</table>

**Additional Information about newly created folder after move to Service Account**

The new folder created by the Move Folders endpoint will have the following attributes:

**Folder Name:** \[User's Name]’s Files and Folders

**Folder Description:** This folder contains files previously owned by \[User's Name], and were transferred to you by your enterprise administrator. If you have any questions, please contact \[Enterprise Administrator's Name and Email].

**Delete or Downgrade the User** User deprovisioning requires that you inactivate AND/OR delete a user in Box. Inactivation is an optional first step if you will be deleting users programmatically, however it is the minimum required step if you will not be deleting users programatically. Inactivating a user will immediately log them out of all apps (Box Sync, Mobile, 3rd party apps, etc). It will also temporarily freeze all of a user's content. Collaborators on folders owned by this user will not be able to access collaborated content while the user is inactive. There, the inactive status should only be used temporarily as a "hold period" when you are deciding where the user's content should be moved to. All calls should be done from an Admin account!

<table class="resizable" draggable="false" data-struct-id="tableba8d2a471c72486da3b35dd503d00026" data-node-type="structure">
  <tbody>
    <tr data-node-type="structure">
      <td data-node-type="structure" data-table-cell="struct-tableba8d2a471c72486da3b35dd503d00026_row02060e7f45714a6789ee117118567c70_col5a93d6984d5848e697b9a135b9b41a45"> </td>

      <td data-node-type="structure" data-table-cell="struct-tableba8d2a471c72486da3b35dd503d00026_row02060e7f45714a6789ee117118567c70_col4f7c9aba133d4634803062b891c29870">
        <div id="magicdomid155" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_row02060e7f45714a6789ee117118567c70_col4f7c9aba133d4634803062b891c29870 struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>Action</strong></span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tableba8d2a471c72486da3b35dd503d00026_row02060e7f45714a6789ee117118567c70_coledbe9a12fba5451e97fb41ebffa640e1">
        <div id="magicdomid156" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_row02060e7f45714a6789ee117118567c70_coledbe9a12fba5451e97fb41ebffa640e1 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>API URL Endpoint</strong></span></div>
        </div>

        <div id="magicdomid157" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_row02060e7f45714a6789ee117118567c70_coledbe9a12fba5451e97fb41ebffa640e1 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983 font-color-000000 font-size-small i"><em>(links to documentation)</em></span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tableba8d2a471c72486da3b35dd503d00026_row02060e7f45714a6789ee117118567c70_col399e9070abdd43fa86468167fe519e7a">
        <div id="magicdomid158" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_row02060e7f45714a6789ee117118567c70_col399e9070abdd43fa86468167fe519e7a struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>Additional Notes</strong></span></div>
        </div>
      </td>
    </tr>

    <tr data-node-type="structure">
      <td data-node-type="structure" data-table-cell="struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col5a93d6984d5848e697b9a135b9b41a45">
        <div id="magicdomid159" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col5a93d6984d5848e697b9a135b9b41a45 struct-prop-table-col_width_percentage_5" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">1.</span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col4f7c9aba133d4634803062b891c29870">
        <div id="magicdomid160" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col4f7c9aba133d4634803062b891c29870 struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">Delete the user</span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_coledbe9a12fba5451e97fb41ebffa640e1">
        <div id="magicdomid161" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_coledbe9a12fba5451e97fb41ebffa640e1 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><a href="https://developer.box.com/reference/delete-users-id/"><span class="author-240083983 font-color-000000 font-size-medium link-MTQ3MTYyNjI1MjQ2OS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjZGVsZXRlLWFuLWVudGVycHJpc2UtdXNlcg==">DELETE</span></a></div>
        </div>

        <div id="magicdomid162" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_coledbe9a12fba5451e97fb41ebffa640e1 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 link-MTQ3MTYyNjI1MjQ2OS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjZGVsZXRlLWFuLWVudGVycHJpc2UtdXNlcg== lineAttribMarker"><a href="https://developer.box.com/reference/delete-users-id/"><span class="author-240083983 link-MTQ3MTYyNjI1MjQ2OS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjZGVsZXRlLWFuLWVudGVycHJpc2UtdXNlcg==">/users</span><span class="author-240083983 font-color-000000 font-size-medium link-MTQ3MTYyNjI1MjQ2OS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjZGVsZXRlLWFuLWVudGVycHJpc2UtdXNlcg==">/</span><span class="author-240083983 b font-color-000000 font-size-medium link-MTQ3MTYyNjI1MjQ2OS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjZGVsZXRlLWFuLWVudGVycHJpc2UtdXNlcg=="><strong>\{USER\_ID}</strong></span></a></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col399e9070abdd43fa86468167fe519e7a">
        <div id="magicdomid163" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col399e9070abdd43fa86468167fe519e7a struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker">
            <span class="author-240083983">Request </span><span class="author-240083983"><strong>Body</strong></span><span class="author-240083983"> Parameters:</span>
          </div>
        </div>

        <div id="magicdomid164" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col399e9070abdd43fa86468167fe519e7a struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class=""><span class="author-240083983">notify: true/false</span></li>
            </ul>
          </div>
        </div>

        <div id="magicdomid165" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col399e9070abdd43fa86468167fe519e7a struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet3 lineAttribMarker">
            <ul class="list-bullet3">
              <li class=""><span class="author-240083983">Indicates whether or not to notify user via email about account deletion</span></li>
            </ul>
          </div>
        </div>

        <div id="magicdomid166" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col399e9070abdd43fa86468167fe519e7a struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class=""><span class="author-240083983">force: true</span></li>
            </ul>
          </div>
        </div>

        <div id="magicdomid167" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col399e9070abdd43fa86468167fe519e7a struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet3 lineAttribMarker">
            <ul class="list-bullet3">
              <li class=""><span class="author-240083983">Indicates whether or not to delete user even if user still owns content</span></li>
            </ul>
          </div>
        </div>

        <div id="magicdomid168" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col399e9070abdd43fa86468167fe519e7a struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker"><span class="author-240083983">Response:</span></div>
        </div>

        <div id="magicdomid169" class="ace-line struct-tableba8d2a471c72486da3b35dd503d00026_rowd6ee66ae78f14637ba0758cd3f9c63f9_col399e9070abdd43fa86468167fe519e7a struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">Status code: 20</span><span class="author-240083983">4</span><span class="author-240083983">. Indicates that </span><span class="author-240083983">the user has been successfully deleted.</span>
              </li>
            </ul>
          </div>
        </div>
      </td>
    </tr>
  </tbody>

  <tfoot class="unselectable-structure-node table-col-resize-dragger-container disableSelectable" contenteditable="false" data-node-type="structure" />
</table>

**OR**

<table class="resizable" draggable="false" data-struct-id="table715f34d750f64774b280399c87303cf6" data-node-type="structure">
  <tbody>
    <tr data-node-type="structure">
      <td data-node-type="structure" data-table-cell="struct-table715f34d750f64774b280399c87303cf6_rowcdd0f1c433614987b1e6a08115dad5da_colb402abd8f1ca469a80d5b6075eb6ee7c"> </td>

      <td data-node-type="structure" data-table-cell="struct-table715f34d750f64774b280399c87303cf6_rowcdd0f1c433614987b1e6a08115dad5da_coleb0bb4846ad1410ba0cb38f13501e5ef">
        <div id="magicdomid172" class="ace-line struct-table715f34d750f64774b280399c87303cf6_rowcdd0f1c433614987b1e6a08115dad5da_coleb0bb4846ad1410ba0cb38f13501e5ef struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>Action</strong></span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-table715f34d750f64774b280399c87303cf6_rowcdd0f1c433614987b1e6a08115dad5da_col25dba3edd9234d32a795f84b8769d646">
        <div id="magicdomid173" class="ace-line struct-table715f34d750f64774b280399c87303cf6_rowcdd0f1c433614987b1e6a08115dad5da_col25dba3edd9234d32a795f84b8769d646 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>API URL Endpoint</strong></span></div>
        </div>

        <div id="magicdomid174" class="ace-line struct-table715f34d750f64774b280399c87303cf6_rowcdd0f1c433614987b1e6a08115dad5da_col25dba3edd9234d32a795f84b8769d646 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983 font-color-000000 font-size-small i"><em>(links to documentation)</em></span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-table715f34d750f64774b280399c87303cf6_rowcdd0f1c433614987b1e6a08115dad5da_col9650a016d5734fed87320522da891d41">
        <div id="magicdomid175" class="ace-line struct-table715f34d750f64774b280399c87303cf6_rowcdd0f1c433614987b1e6a08115dad5da_col9650a016d5734fed87320522da891d41 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983"><strong>Additional Notes</strong></span></div>
        </div>
      </td>
    </tr>

    <tr data-node-type="structure">
      <td data-node-type="structure" data-table-cell="struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_colb402abd8f1ca469a80d5b6075eb6ee7c">
        <div id="magicdomid176" class="ace-line struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_colb402abd8f1ca469a80d5b6075eb6ee7c struct-prop-table-col_width_percentage_5" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">1.</span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_coleb0bb4846ad1410ba0cb38f13501e5ef">
        <div id="magicdomid177" class="ace-line struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_coleb0bb4846ad1410ba0cb38f13501e5ef struct-prop-table-col_width_percentage_24" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><span class="author-240083983">Downgrade the user to a 'Lite' (free) account</span></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_col25dba3edd9234d32a795f84b8769d646">
        <div id="magicdomid178" class="ace-line struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_col25dba3edd9234d32a795f84b8769d646 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 lineAttribMarker"><a href="https://developer.box.com/reference/put-users-id/"><span class="author-240083983 font-color-000000 font-size-medium link-MTQ3NTIwMDAzMzQyMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWEtdXNlcnMtaW5mb3JtYXRpb24=">PUT</span></a></div>
        </div>

        <div id="magicdomid179" class="ace-line struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_col25dba3edd9234d32a795f84b8769d646 struct-prop-table-col_width_percentage_27" data-node-type="line">
          <div class="align-center author-240083983 link-MTQ3NTIwMDAzMzQyMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWEtdXNlcnMtaW5mb3JtYXRpb24= lineAttribMarker"><a href="https://developer.box.com/reference/put-users-id/"><span class="author-240083983 font-color-000000 font-size-medium link-MTQ3NTIwMDAzMzQyMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWEtdXNlcnMtaW5mb3JtYXRpb24=">/users/</span><span class="author-240083983 b font-color-000000 font-size-medium link-MTQ3NTIwMDAzMzQyMS1odHRwczovL2RvY3MuYm94LmNvbS9yZWZlcmVuY2UjdXBkYXRlLWEtdXNlcnMtaW5mb3JtYXRpb24="><strong>\{USER\_ID}</strong></span></a></div>
        </div>
      </td>

      <td data-node-type="structure" data-table-cell="struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_col9650a016d5734fed87320522da891d41">
        <div id="magicdomid180" class="ace-line struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_col9650a016d5734fed87320522da891d41 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker">
            <span class="author-240083983">Request </span><span class="author-240083983"><strong>Body </strong></span><span class="author-240083983">Parameters:</span>
          </div>
        </div>

        <ul class="list-bullet2">
          <ul class="list-bullet2">
            <li class="list-bullet2"><span class="author-240083983">enterprise: null</span></li>

            <ul class="list-bullet3">
              <li class="list-bullet3"><span class="author-240083983">Moves the user's account outside of your Box Enterprise</span></li>
            </ul>
          </ul>
        </ul>

        <div id="magicdomid183" class="ace-line struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_col9650a016d5734fed87320522da891d41 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 lineAttribMarker"><span class="author-240083983">Response:</span></div>
        </div>

        <div id="magicdomid184" class="ace-line struct-table715f34d750f64774b280399c87303cf6_row33863542bf474cbead786c1a4fa85c67_col9650a016d5734fed87320522da891d41 struct-prop-table-col_width_percentage_44" data-node-type="line">
          <div class="align-left author-240083983 list:bullet2 lineAttribMarker">
            <ul class="list-bullet2">
              <li class="">
                <span class="author-240083983">Status code: 20</span><span class="author-240083983">0</span><span class="author-240083983">. Indicates that </span><span class="author-240083983">the user has been successfully downgraded.</span><span class="author-240083983" />

                <ul class="list-bullet2">
                  <li class=""><span class="author-240083983">Note: If you have any retention policy or legal hold policy, downgrading is not possible.</span></li>
                </ul>
              </li>
            </ul>
          </div>
        </div>
      </td>
    </tr>
  </tbody>

  <tfoot class="unselectable-structure-node table-col-resize-dragger-container disableSelectable" contenteditable="false" data-node-type="structure" />
</table>

## **Additional Considerations**

* You will need a method to determine which users the script should act upon.

* Will the script be triggered by a specific action? Or will it run periodically and check all users for deactivation in Active Directory?

* You will need a method to get the login (email address) or Box user ID of the user the script should act upon.
