SharePoint Search integratino with Box

New post

Comments

1 comment

  • jcleblanc

    Hi ,

     

    Your assessment is correct, the best way to build an integration like this is through a middleware layer that leverages off of the Box search APIs. Here's a basic run through of the process:

    • From SharePoint (either using their APIs within a custom page or directly in an app) you would get the input for what to search with (keywords / etc).
    • The middleware page / app would auth to Box using one of the auth types - a few options for you:
      • JWT / OAuth 2 application: This will allow you to use Box APIs behind the scenes without the user having to log in to their Box account. The app can make API calls on behalf of the user to search for their content. One warning here - if you use this auth type your app will need to belong to the same enterprise (company) that the user(s) belong to or be collaborated in on their files / folders as an external contributor. 
      • OAuth 2 application: This one is easier to manage for you. Basically when a user wants to search for their Box content for the first time you will forward the user to Box to log in, grant the app permissions, then redirect them back to the app. If your users are all over different enterprises I would suggest this method as it maintains a 1:1 relationship between your site and the user, allowing you to search for content on their account. It's much easier to manage.
    • When the app auth is complete, simply make a call to the search endpoint for that user with any content you may need.

    Hope that helps,

    Jon

    0
    Comment actions Permalink

Please sign in to leave a comment.