Set up the Box spoke
Integrate your ServiceNow instance and the Box APIs to automate the Box spoke actions. For example, you can set up a flow that removes a file in your Box account. When you set up the Box spoke, this flow is automated.
Before you begin
- Request an Integration Hub subscription.
- Activate the Box spoke.
- Access to Box developer's console.
- Role required: admin.
Create an OAuth application
Create a custom OAuth application from your Box account to enable OAuth 2.0 authentication with the Box spoke.
Before you begin
Box requirements:
- Box account
- Box administrator credentials
- Role required: admin
About this task
Complete these steps from your Box account. See the Box Developer Portal documentation for instructions on creating and configuring custom applications.
Procedure
Log in to the Box developer's console.
Select Create New App.
Emphasizes the Create New App button
- Select Custom App.
Emphasizes the Custom App option
- Complete the form.
| Field | Value |
|---|---|
| App Name | `Box App` |
| Description (optional) | Leave this field empty |
| Purpose | SelectCustom Portal |
Select Next.
The Create a Custom App modal appears.
Select User Authentication (OAuth 2.0).
To confirm, select Create App.
You are in your application's configuration settings.
In the OAuth 2.0 Credentials section, copy the Client ID and Client Secret.
You need this information to register the application as a third-party OAuth provider on your ServiceNow instance.
In the Application Scopes section, enable the scope permissions you want to support.
| Application Scopes | Use for |
|---|---|
| Read and write all files and folders stored in Box | Document management, document sharing, and folder management actions |
| Manage users | User management actions |
| Manage groups | Group management actions |
| Manage enterprise properties | Document sharing, group management, and user management actions |
| Manage webhooks | Configuring V2 webhooks |
| Manage AI | Interact with Box AI actions |
- Select Save Changes.
Configure a connection record for the Box spoke
Add and configure a Box connection to authenticate ServiceNow requests in a Box spoke.
Before you begin
Role required: admin
Procedure
In your ServiceNow instance, navigate to All > Process Automation > Workflow Studio.
Click the Integrations tab.
Under Connections, toggle and enable the Outbound connections.
Locate the alias for Box and click View Details.
- To configure the default connection and credential alias record that is shipped along with the Box spoke, click View Details.
View details of the Box connection.
- To manage more than one Box spoke connection records, you should create a new child alias record by clicking **Add Connection**. For more information about using multiple connections, see [Supporting multiple connections](support-multiple-connections.md).
If you are configuring the spoke for the first time, click **Configure**. Otherwise, click **Edit**.
Configure the Box connection.
- On the form, fill these values.
| Field | Value | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Connection Name | `Box`. | ||||||||||
| Connection URL | The instance URL in this format:`| Credential Name | `Box Upload Credentials`. | OAuth Name | `Box OAuth`. | OAuth Client ID | The application client ID. For more information, see Create an OAuth application. | OAuth Client Secret | The application client secret. For more information, see Create an OAuth application. | OAuth Redirect URL | The URL in this format: `https:// | Image omitted: box-connection.png Configure the Box connection.
ResultThe spoke connection is configured and ready to be used. Note: OAuth tokens expire after 30 days. An administrator can regenerate the spoke OAuth token every 30 days. Regenerate Box OAuth tokenRegenerate the Box OAuth token when it expires. The Box spoke OAuth token expires every thirty days. Before you beginRole required: admin Procedure
ResultThe Box spoke receives a new OAuth access token. It expires in 30 days. Integrate ServiceNow instance with JWT Bearer grant typeSet up an OAuth provider with the JWT Bearer grant type to integrate your ServiceNow instance with Box. Before you beginRole required: admin Procedure
|