Skip to content

Configuring the Sharepoint app in Connections

Edit the widgets-config.xml file for Communities to update the SharePoint Library app definition and provide the app's client ID and the URL for the Microsoft Office 365 tenant that the app will connect to.

Make sure you've completed all the steps in Configuring the Sharepoint app in Microsoft Azure AD.

  1. Check out and open widgets-config.xml as described in Using the widgets-config.xml file for Communities.

  2. Search for the app's definition with defId="SharepointLibrary" to see the following:

    <widgetDef defId="SharepointLibrary" modes="view edit fullpage" themes="wpthemeNarrow wpthemeWide wpthemeBanner wpthemeThin" uniqueInstance="true" url="\{webresourcesSvcRef}/../../spo/SharepointWidget.xml"> 
        <itemSet> 
            <item name="clientId" value="XXXXXXXXXXXXXXXXXXXXXXXXXXXX"/> 
            <item name="tenant" value="your\_organization\_url.onmicrosoft.com"/>
        </itemSet> 
    </widgetDef>  
    
  3. Set the client ID to the string that you copied for the application (client) ID in the previous task.

  4. Change the value for tenant to your_organization_url.onmicrosoft.com.

    Tip: To view the default domain and obtain the tenant value, sign in to the Microsoft 365 Admin Center or Azure Portal with your administrator account. Then, locate the Azure Active Directory settings and find the "Custom domains" or "Domains" section. This lists the domains associated with your tenant, including the onmicrosoft.com, which should be marked as the default domain.

  5. Save and close the file according to the topic referenced in step 1.

  6. Syncronize your nodes.

  7. Restart the Connections Communities application.

Parent topic:The Connections community app for Microsoft Sharepoint