---
title: Configure provisioning
description: To configure a connection for outbound provisioning to Box, follow the instructions in this section.
component: box
page_id: box:setup:pf_box_connector_configure_provisioning
canonical_url: https://docs.pingidentity.com/integrations/box/setup/pf_box_connector_configure_provisioning.html
revdate: June 27, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Configure provisioning

## About this task

To configure a connection for outbound provisioning to Box, follow the instructions in this section.

Outbound provisioning details are managed within a service provider (SP) connection. You can configure outbound provisioning with or without Browser SSO, WS-Trust STS, or both when you create a new SP connection. You can also add outbound provisioning to an existing SP connection.

## Steps

1. In the PingFederate administrator console, configure the data store that PingFederate will use as the source of user data. Learn more in [Datastores](https://docs.pingidentity.com/pingfederate/latest/administrators_reference_guide/help_managedatasourcestasklet_managedatasourcesstate.html) in the PingFederate documentation.

   * When targeting users and groups for provisioning, exclude the user account that you will use to administer users in your connection to Box. This prevents the PingFederate provisioning engine from interfering with the account that provisions users and groups.

2. Create a new SP connection or select an existing SP connection from the **SP Configuration** menu.

3. On the **Connection Template** screen, select the **Use a template for this connection** option and choose **Box Connector** from the **Connection Template** drop-down list. You will be asked to provide the `boxmetadata.xml` file you obtained earlier in [Download Box SAML 2.0 metadata file](pf_box_connector_download_box_saml_20_metadata_file.html).

   ![An image of the Connection Template screen.](_images/igc1563995181315.png)

   |   |                                                                                                 |
   | - | ----------------------------------------------------------------------------------------------- |
   |   | If this selection is not available, verify the connector installation and restart PingFederate. |

4. On the **Connection Type** screen, ensure the **Outbound Provisioning** check box is selected, and the **Browser SSO Profiles** check box is cleared (if appropriate).

5. On the **General Info** screen, the default values are taken from the metadata file you selected in step 2. We recommend using the metadata default values.

   ![An image of the General Info screen.](_images/dfn1563995181955.png)

6. Follow the connection wizard to configure the connection.

7. On the **Outbound Provisioning** screen, click **Configure Provisioning**.

8. On the **Target** screen, enter the values for each field as required by the Box Connector.

   ![An image of the Target screen.](_images/gqj1563995182647.png)

   | Field Name                                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
   | ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | **Client ID**                                                 | The client ID for the application created in Box.Learn more about obtaining a client ID in [Obtain client ID and secret from Box](pf_box_connector_obtain_client_id_and_secret_from_box.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
   | **Client Secret**                                             | The client secret generated during application creation for Box.Learn more about obtaining a client secret in [Obtain client ID and secret from Box](pf_box_connector_obtain_client_id_and_secret_from_box.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
   | **OAuth Access Token**                                        | The OAuth access token generated by the OAuth Configuration Service.Learn more about obtaining authorized OAuth tokens in [Generate OAuth access and refresh tokens](pf_box_connector_generate_oauth_access_and_refresh_tokens.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
   | **OAuth Refresh Token**                                       | The OAuth refresh token generated by the OAuth Configuration Service.Learn more about obtaining authorized OAuth tokens in [Generate OAuth access and refresh tokens](pf_box_connector_generate_oauth_access_and_refresh_tokens.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
   | **Token Management Datastore**                                | Select where tokens will be stored:- **Flatfile** (default)

     Tokens will be stored in a flatfile named `boxoauthtoken.conf` located at `<pf_install>/server/default/data/adapter-config`.

     &#xA;&#xA;The flatfile option is only available when running in Standalone mode, since the flatfile cannot be accessed by multiple nodes. The flatfile option cannot be used in a clustered environment even if only one node is used for provisioning.

   - **Database**

     Tokens can also be stored in a database. If you have set up databases in PingFederate, they will appear in the list as options. If you have a multinode PingFederate configuration for clustered or failover use cases, tokens must be stored in a database.

     The `saas_connection_fields` table must be first created in the database using the appropriate supplied script. The same database used for PingFederate provisioning can be used to create the `saas_connection_fields` table. This must be completed before configuring the Box Connector. During configuration, choose the database that contains the `saas_connection_fields` table.                                                                         |
   | **Group Provenance** (Optional)                               | Optional and for group provisioning only. This allows you to keep track of which external source this group is coming from (for example, "Active Directory", "Google Groups", "Facebook Groups"). This field should be a human-readable identifier up to 255 characters long. Setting this will also prevent Box users from editing this group directly through Box. This is desirable for one-way syncing of groups.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
   | **Group Name Source**                                         | Possible values:- **Group Common Name** (default)

     When selected, groups will be provisioned in Box with the name equal to the common name of the group in Active Directory.

   - **Group Distinguished Name**

     When selected, groups will be provisioned in Box with the name equal to the distinguished name of the group in Active Directory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
   | **Provisioning Options**                                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
   | **User Create**                                               | * **True** (default)

     Users will be created in Box.

   * **False**

     Users will not be created in Box.

     &#xA;&#xA;The provisioner.log will display a warning within the create user workflow that the user was not created in Box.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
   | **User Update**                                               | - **True** (default)

     Users will be updated in Box.

   - **False**

     Users will not be updated in Box.

     &#xA;&#xA;The provisioner.log will display a warning within the update user workflow that the user was not updated in Box.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
   | **User Disable/Delete**                                       | * **True** (default)

     Users will be disabled or deleted in Box.

     &#xA;&#xA;A disabled user can only be re-enabled if User Update is true.

   * **False**

     Users will not be disabled or deleted in Box.

     &#xA;&#xA;The provisioner.log will display a warning indicating that the user was not disabled or deleted in Box.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
   | **Provision Disabled Users**                                  | This option is only relevant if **User Create** is true.* **True** (default)

     If a disabled user in the user store is targeted for provisioning, it will be created in a disabled state in Box.

   * **False**

     Box users will not be created in a disabled state. This is desirable for scenarios where there are disabled users in the data store, not intended for creation in Box during initial synchronization.

     &#xA;&#xA;The provisioner.log will display a warning within the create user workflow indicating that the user was not created in Box.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
   | **Personal Folders**                                          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
   | **Create Personal Folders**                                   | - **False** (default)

     Personal folders will not be created.

   - **True**

     On the creation of a new user, a personal Box folder will be created for the user. The new folder will be created in a parent folder you must specify on this page (see **Parent Folder ID**), and its name will be the value of the user's **Personal Folder Name** attribute. You can find details in [Supported attributes reference](pf_box_connector_supported_attributes_reference.html).

     &#xA;&#xA;If an issue occurs during the creation of the personal folder, the server.log will display a warning indicating that the user's personal folder was not created in Box. If you have applied Additional logging changes, this will be shown in the provisioner.log.                                                                                                                                                                                                                                                                                                                                                                                                                                             |
   | **Parent Folder ID**                                          | This option is required if **Create Personal Folders** is true.The ID of the parent folder in which new personal folders will be created. The administrator account used when obtaining the client ID and client secret must be the owner of this folder.You can easily find the ID of a folder by navigating to the desired parent folder in the Box web portal and copying the string of numbers at the end of the url. For example, the ID of the folder located at:- https\://myconnector.app.box.com/folder/12345678910would be `12345678910`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
   | **Personal Folder Permission Levels**                         | This option is only relevant if **Create Personal Folders** is true.- **Admin as Owner - User as Co-Owner** (default)

     When a new personal folder is created, the admin will be the owner of the folder, and the user will be a co-owner.

   - **Admin as Owner - User as Editor**

     When a new personal folder is created, the admin will be the owner of the folder, and the user will be an editor.

   - **User as Owner**

     When a new personal folder is created, the user will be the owner, and the admin will have no permissions on or visibility into that folder.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
   | **Deprovisioning**                                            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
   | **Remove User Action**                                        | Select a deprovision method (**Suspend** or **Delete**). Deprovisioning is triggered when previously provisioned users no longer meet the condition set in the **Source Location** screen, or when a user has been suspended or deleted from the data store. This option is only applicable if **User Disable/Delete** is set to true.- **Suspend** (default)

     When selected, if you delete a user from Active Directory, the user will be suspended in Box (also known as a soft delete).

   - **Delete**

     When selected, if you delete a user from Active Directory, the user will be deleted in Box (also known as a hard delete).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
   | **Box Account Email For Transferring Deleted User's Content** | Optional and only relevant when **User Disable/Delete** is true and **Remove User Action** is **Delete**.The email associated with a valid and active Box account. When this is specified, if a user is deleted, their content (for example, files) would be transferred to the specified Box account instead of being deleted with the user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
   | **Force Delete Managed Content**                              | This option is only relevant if **User Disable/Delete** is true, **Remove User Action** is **Delete**, and the **Box Account Email For Transferring Deleted User's Content** is valid.- **False - Users with managed content will not be deleted** (default)

     Attempts to delete users who own files will fail unless the files can be transferred to another account. If a value has been provided for **Box Account Email For Transferring Deleted User's Content** field then the user will be deleted after the data is transferred. The `provisioner.log` will show an error and retry on the next provisioning cycle.

   - **True - CAUTION: Users and their managed content will be deleted**

     Attempts to delete users will proceed regardless of whether they own files. Any content owned by the user, including folders and files, will be permanently deleted from Box. If a value has been provided for the **Box Account Email For Transferring Deleted User's Content** field, then the transfer of files will be attempted prior to the user and content being deleted. Only select this option if revoking user access to content is of a higher priority than preserving the content. |

   |   |                                                                                                                                                                                                                                                                                                                                                                                               |
   | - | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | Once PingFederate is restarted, these and subsequent authorized OAuth tokens are stored in either the flatfile or the database, depending on the **Token Management Datastore** choice.If these values in your SP connection require updating at any time in the future, follow the steps in [Updating Box OAuth tokens](../troubleshooting/pf_box_connector_updating_box_oauth_tokens.html). |

9. Click **Next** to continue the provisioning configuration. Learn more in the following sections under [Outbound provisioning for IdPs](https://docs.pingidentity.com/pingfederate/latest/introduction_to_pingfederate/pf_outboun_provis_for_idp.html) in the PingFederate documentation:

   * [Managing channels](https://docs.pingidentity.com/pingfederate/latest/administrators_reference_guide/help_saasmanagementtasklet_saasmanagementstate.html)

   * [Specifying channel information](https://docs.pingidentity.com/pingfederate/latest/administrators_reference_guide/help_saaschanneltasklet_saasgeneralinfostate.html)

   * [Identifying the source datastore](https://docs.pingidentity.com/pingfederate/latest/administrators_reference_guide/help_saaschanneltasklet_saassourceselectionstate.html)

   * [Modifying source settings](https://docs.pingidentity.com/pingfederate/latest/administrators_reference_guide/help_saaschanneltasklet_saassourcesettingsstate.html)

   * [Specifying a source location](https://docs.pingidentity.com/pingfederate/latest/administrators_reference_guide/help_saaschanneltasklet_saassourcelocationstate.html)

   * [Mapping attributes](https://docs.pingidentity.com/pingfederate/latest/administrators_reference_guide/help_saaschanneltasklet_saasattrmappingmgmtstate.html)

   * [Reviewing channel settings](https://docs.pingidentity.com/pingfederate/latest/administrators_reference_guide/help_saaschanneltasklet_saasactivationstate.html)

     |   |                                                                                                                 |
     | - | --------------------------------------------------------------------------------------------------------------- |
     |   | Credentials will be verified when the channel and SP connection is set to Active and provisioning is initiated. |

     |   |                                                                                                                                                                                                                                                          |
     | - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
     |   | If you are not ready to complete the provisioning configuration, you can click **Save** and return to the configuration page later. To return to the configuration page, select the connection from **Identity Provider > SP Connections > Manage All**. |
