Troubleshooting - OfficeDev/microsoft-teams-apps-request-a-guest GitHub Wiki

The following potential issues have been identified during deployment of the app.

Table of Contents

API permissions are not granted when using the preview feature 'Admin consent requests'

If the API permissions have not been set properly the Logic apps will not have the access they require to run the automated processes. If errors are seen during deployment with API permissions follow the steps below to manually assign the permissions:

  • Login to https://portal.azure.com as a subscription administrator
  • Navigate to Resource Groups and access the newly created resource group to view the API connections API List
  • Click into each API connection in turn. Under Overview verify that 'Connected' is displayed under 'Status'. API Connected
  • If Connected is not displayed, navigate to 'Edit API connection' and click 'Authorize' API Connected
  • Enter the credentials of the Guest Approver service account when prompted
  • Verify each of the API connections to ensure these are all Connected

The first run of the Logic apps will not recognise that changes have been made to the SharePoint list.

There is a known issue that a Logic app will not recognise that a SharePoint list item has been modified. This only occurs on the first change to a SharePoint list item, all other changes are recognised.

Once you deploy the app and try adding a guest for the first time the DomainCheck Logic app will not recognise that there is a change to the list item. The RequestaGuest and Teamsapproval Logic apps will also not recognise the first change to a SharePoint list item.

Workaround

To workaround this issue manually edit the SharePoint list item for the first request.

  • Create a new request in the Request-a-guest app
  • Access the SharePoint list at the new SharePoint site
  • Manually edit the list item, for example update the 'Justification' field
  • Wait for the DomainCheck Logic app to run and update the 'Domain Check' field to update to authorised
  • Manually edit the list item, for example update the 'Justification' field
  • Wait for the TeamApproval Logic app to run and post the adaptive cards to Teams
  • Approve the request through the Request-a-guest app or via the adaptive card
  • Manually edit the list item, for example update the 'Justification' field
  • Wait for the RequestaGuest LogicApp to run and invite the guest

All subsequent requests will run without issues.

Adaptive cards are not posted to the Teams Channel

The Logic app uses the Teams Connector to post adaptive cards to the Channel. This connector has some limitations as documented here:

Microsoft Teams connector known issues and limitations

Didn't find your problem here?

Please, report the issue here

Further Reading

Home

Architecture

Cost Estimates

Data Retention

Deployment Guide

Troubleshooting