How Can We Help?
< All Topics
Print

04. Custom App – Migrating to Developer Managed Service Accounts

 

Building a Data Connection App with DMSA
Click here for demo video

Create a New App

    1. Open your browser and navigate to the Procore Developer Portal page (https://developers.procore.com).
    2. Click ‘Sign In’ to log in to your Developer Portal account.Hingepoint Proconnector |
    3. Click on ‘My Apps’ and click on ‘Create a New App’
      Hingepoint Proconnector |
    4. In the Create New App dialog box, enter the App Name as ‘Procore DMSA App’. This will be the name you use to refer to your application internally within your organization.
    5. Click the ‘Create’ button when done.
      Hingepoint Proconnector |

 

Add OAuth Component with ‘client credentials’ Grant Type

DMSA-enabled data connection Apps specify the OAuth component grant type as client credentials in your App manifest. Use the following steps to add an OAuth component to the manifest and define the grant type

Please refer to the video demonstration in the link below for reference to execute the following steps:

https://developers.procore.com/documentation/developer-managed-service-accounts

Hingepoint Proconnector |

    1. In the Developer Portal, navigate to the ‘Manage Manifests’ panel for your App.Hingepoint Proconnector |
    2. Select ‘Create New Version’.Hingepoint Proconnector |
    3. To add an OAuth component to your manifest, click on ‘Copy Code Snippet’ under Data Connection.Hingepoint Proconnector |
    4. Paste the code snippet between the brackets of the ‘O auth’ sectionHingepoint Proconnector |
    5. Code Snippet highlighted in Red given below for your reference. Replace the below content for components
      • “components”: {
        “oauth”: {
        “instances”: [
        {
        “grant_type”: “client_credentials”
        }

        ]
    6. After copying the code snippet and replacing the content, it should look like the screenshot belowHingepoint Proconnector |
    7. After updating the App Manifest, select ‘Create’ in the lower right-hand corner.Hingepoint Proconnector |

Specify Tool Permissions Using Permission Builder

Once you have defined the grant type for your OAuth component as client_credentials, you can use the Permission Builder to specify the company level and project level tool permissions that are required to install and use your application.

    1. In the Manage App view, scroll down to the Manage Manifests section and select ‘Create New Version’.
      Hingepoint Proconnector |
    2. Under App Tool Permissions, on the Create New Version page, select Open Builder.
      Hingepoint Proconnector |
    3. In the Permission Builder window, select the Company and Project level permission levels
      a. Admin = Admin
      b. Directory = Admin
      c. Documents = Admin
      d. Home = Read-OnlyHingepoint Proconnector |
    4. Click on ‘Update Manifest’. The OAuth component in your manifest is updated with the permissions you defined in the Permission Builder.
    5. Click on Create to save your updates and create the new version of your manifest.
      Hingepoint Proconnector |

Promote Updated Sandbox Manifest to Production

After you have successfully tested and validated your updated manifest in the development sandbox environment, you can promote it to the production environment and use your production OAuth credentials with your App.

Click on ‘Promote’ option

Hingepoint Proconnector |

In the Promote Manifest, click on ‘Promote’ button again.

Hingepoint Proconnector |

In the Production Credentials pop up, COPY AND SAVE the Production Client Key and Client Secret that is fetched safely as you will not be able to retrieve the same Client Secret from your developer portal account after promoting it to Production. Click on Close.

Hingepoint Proconnector |

Once the credentials are promoted to Production, The Production App Version Key will be generated under Manage Manifest under ‘Production’ [Please save this as we need this to create the Custom App in Procore.

Hingepoint Proconnector |

Production OAuth Credentials will be updated with just displaying the Client ID. The same Client Secret will not be displayed in here.

Hingepoint Proconnector |

App Installation and Management

DMSA-enabled Apps are installed by Procore company administrators either from the Procore App Marketplace or as custom installations.

Pre-Requisites

  • Required User Permissions: ‘Admin’ level permissions on the Company level Directory tool.

 

How to Install a Custom App

    1. Navigate to the Company level Admin tool https://app.procore.com/
    2. Under ‘Company Settings’, click on ‘App Management’.
      Hingepoint Proconnector |
    3. Click on ‘Install App’ and choose ‘Install Custom App’Hingepoint Proconnector |
    4. Enter the 36-character ‘App Version ID’ provided to you by the custom App developer.
      Hingepoint Proconnector |
      Hingepoint Proconnector |
    5. Click ‘Install’.
    6. Click ‘Install’ again to confirm the installation.
    7. Click on ‘View’ next to the newly installed App.
      Hingepoint Proconnector |
    8. Click on ‘Permissions’. Under Permitted Projects, use the ‘Select Projects’ drop-down to select all the Projects you want to apply the App configuration to and click on the ‘Add’ button.
      Hingepoint Proconnector |
    9. All the Procore Projects will be added to the newly installed DMSA Custom App.

 

How to add the newly created Procore Projects to the DMSA App

      1. In the Procore Portal click on Company Tools and select Directory.
        Hingepoint Proconnector |
      2. Select the App and click on Edit button.
        Hingepoint Proconnector |
        Hingepoint Proconnector |
      3. Important Note: Do not make any changes to the Company Permission Template.
      4. In the Project settings, check the first check box “Add [App Name] to all new projects in HingePoint and Save. All the newly added Procore projects will be added to your DMSA App.
        Hingepoint Proconnector |

Once all the above installations are complete, log in to the Sync Tool application and create a New Procore Integration using the Production DMSA credentials. Create a new connection using the above Procore Integration. Start the sync process.

How to add all the existing Procore Projects to the DMSA App at once:

      1. In the Procore Portal, click on Company Tools and select Directory.
        Hingepoint Proconnector |
      2. Select the App and click on the Edit button.
        Hingepoint Proconnector |
      3. In the Project settings, under the DMSA App – Does Not Belong To’ list, click on ‘Add All’ button. These are the list of all the Procore Projects available that are not yet added to the DMSA Custom App.
        Hingepoint Proconnector |
      4. Note: If there are more than 2k Procore projects, The ‘Add All’ button will be disabled.
      5. Once all the projects are added, click on the Save button. All the projects will be listed under ‘Current Project Settings’
        Hingepoint Proconnector |

Useful links