The Box Connector for Microsoft Graph allows Box and Microsoft customers to index Box data so it appears in Microsoft 365 experiences. By enabling this integration, Microsoft 365 users can discover Box content from Microsoft Search, Microsoft 365 app, or Microsoft Copilot.
These steps will guide a Microsoft admin through enabling the Box Graph Connector integration for their tenant.
Broadly, these are the main steps you need to follow when you deploy the Box Connector for Microsoft Graph integration in your enterprise:
- Authorize the App
- Monitor Box as an External Data Source
- Add the Box Search Vertical
- [Optional] Customize the Vertical
- [Optional] Disabling the Integration
Please make sure you have filled out the enablement form. We would need the information in the form to complete the setup for you. In the meantime, you can proceed with Step 1 which is the pre-requiste for us to configure the connection for you.
Step 1: Authorize the App
This step authorizes the Box Graph Connector app, and allows it to perform API calls necessary to sync Box content to Microsoft Graph.
- As an admin of the Microsoft tenant, open a new tab and navigate to: https://login.microsoftonline.com/{TENANT_ID}/v2.0/adminconsent?client_id=1aab5478-9db7-40c6-90fa-6adfad72e0a9&state=12345&scope=https://graph.microsoft.com/.default&redirect_uri=https://account.box.com, replacing {TENANT_ID} with the Microsoft tenant ID which you'll be enabling the Graph Connector for. You can find your Microsoft tenant ID in your admin Azure portal: https://aad.portal.azure.com/
- On the consent screen, click Accept.
- After clicking Accept, you will be taken to Box. You can close the tab - no actions need to be taken in Box.
- Verify that the app has been added to the tenant and authorized. Go to https://aad.portal.azure.com -> Applications -> Enterprise applications -> and look for the Box Graph Connector app in the enterprise applications list.
- Click on the app, and go to Permissions. All of the permissions should be granted. If one or more permissions have not been granted, you can grant them by clicking the “Grant admin consent for {tenant}” button.
- Notify us that the tenant is ready to begin ingesting data by responding to the email from partnerintegrations@box.com. We will perform work on the Box side to create the data connection between Box and Microsoft Graph, and onboard the Box enterprise to the Box Graph Connector service.
Step 2: Monitor Box as an External Data Source
Once Box setup is complete, you can follow these steps to monitor the connection
- We will inform you via email once the Box setup is complete.
- You can log into https://admin.microsoft.com as a tenant admin to monitor the connection.
- On the left sidebar, click Settings -> Search & intelligence (click Show All if the Settings option is not visible). Click the Data sources tab at the top.
- You should see a Box datasource, with a connection ID of “boxmsgraph”. The connection will initially be in a draft state until the Box Graph Connector service has finished setting up the connection. This may take several hours, depending on the load of the Box Graph Connector service.
- Once the connection has been fully configured, the connection state should change to Ready.
- You can also view the number of items indexed and the last sync time by clicking on the connection, in the Detail section:
Step 3: Add the Box Search Vertical
Now that the Box data source has been configured, the next step is to configure a vertical for the data source. The vertical is what users will use to search for Box files in the UI.
- As a tenant admin, log into https://admin.microsoft.com, go to Settings -> Search & intelligence -> Customizations.
- Under the Verticals tab, click Add.
- Pick the name that you want to appear for the Box tab in the UI. Something like “Box” or “Box Files”, although feel free to name it however you’d like.
- For the content source, choose the Box data source configured in the previous step.
- The query and filters steps can be skipped.
- Finally, click Add Vertical to save the new vertical.
- The vertical will soon be visible to users (it may take anywhere from a few minutes to several hours to appear for all users). You can see the vertical by going to https://portal.office.com, and typing a query into the search bar at the top of the screen. There should be a tab with the vertical name configured in the previous step. Results may not appear under the vertical until the initial sync has completed, which can take anywhere from a few hours to several days.
- To view Box files that have been indexed, you can navigate to the Box vertical and search for *. This will return all indexed Box content for that specific user.
Note: Box results should appear in the All vertical by default. If this is not the case, you can follow the steps detailed here.
Step 4: [Optional] Customize the Vertical
Optionally, you can choose to customize the way that search results are displayed in the Box vertical. If you don’t customize the search result layout, a default layout will be used.
- As a tenant admin, log into https://admin.microsoft.com, go to Settings -> Search & intelligence -> Customizations.
- Click the Result types tab, and add a new result type. Name the result type something like “Box file” and set its content source to the Box data connection configured previously.
- The Rules step can be skipped unless you want a more advanced configuration for your result type.
- The Layout step lets you configure how results should be displayed when searching. The layout designer gives you a visual interface to configure the result, and can be used to generate the customization JSON.
- When using the layout designer, properties are mapped to elements in the layout. The Box Graph Connector exposes the following properties:
- id – The Box file ID
- name – The file’s name, including extension
- fileName – The file name without extension
- extension – The file’s extension
- createdByName – The name of the user who created the file
- createdAt – The date and time which the file was created
- ownedByName – The name of the user who owns the file
- modifiedByName – The name of the user who last modified the file
- modifiedAt – The date and time which the file was last modified
- url – A URL to view the file in Box
- size – The file’s size in bytes
- icon – A generic icon for the file based on the file’s extension
- thumbnail – A thumbnail-sized image of the file. If content ingestion is disabled or there is no thumbnail for the file, then the thumbnail will be the same as the icon
- ResultSnippet – A special Microsoft-supplied field which shows relevant portions of the file’s text with matching search terms highlighted. If content ingestion is disabled or the file is a type which does not support text indexing, then there will be no result snippet. Note that ResultSnippet capitalizes the first letter, unlike the other property names.
- When using the layout designer, properties are mapped to elements in the layout. The Box Graph Connector exposes the following properties:
- If you don’t want to create a custom layout using the designer, you can use this layout developed by Box: https://cloud.box.com/s/p8g567z3tsh45pzh4bz8kywk2vhm88d2.
Step 5: [Optional] Disabling the Integration
Disabling the Box Graph Connector will prevent users from searching for Box content from Microsoft products, and delete any Box data indexed by the integration.
- Contact us to update the Box Graph Connector service so that it stops syncing enterprise data to Microsoft Graph.
- As a tenant admin, log into https://admin.microsoft.com and go to Settings -> Search & intelligence -> Data sources.
- Select the “boxmsgraph” connection, and click the trash icon near the connection’s name. This will delete the connection. It may take several minutes for all indexed data to be deleted.