Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
page_type description products languages extensions urlFragment
sample
This sample illustrates how you can use Resource Specific Consent (RSC) to call Graph APIs.
office-teams
office
office-365
csharp
contentType createdDate
samples
07/07/2021 01:38:26 PM
officedev-microsoft-teams-samples-graph-rsc-csharp

RSC with Graph API

This sample illustrates you can use Resource Specific Consent (RSC) to call Graph APIs.

Interaction with app

Broadcast from user

Prerequisites

Setup

  1. Register your app with Microsoft identity platform via the Azure AD portal (AAD app registration)

  2. Clone the repository

    git clone https://github.com/OfficeDev/microsoft-teams-samples.git
  3. Build your solution

    • Launch Visual Studio
    • File -> Open -> Project/Solution
    • Navigate to samples/graph-rsc folder
    • Select RSCDemo.sln file
    • Build the solution
  4. Setup ngrok

    ngrok http -host-header=rewrite 3978
  5. Update appsettings.json

    • Update configuration for <<Client Id>> and <<Client Secret>> with the MicrosoftAppId and MicrosoftAppPassword which was generated while doing AAD pp registration in your Azure Portal.
  6. Run the bot from Visual Studio:

    • Press F5 to run the project
  7. Setup the manifest.json in the /AppPackage folder Replace the following details:

    • Replace <<Your Microsoft APP Id>> at all the places with your MicrosoftAppId received while doing AAD app registration in Azure portal
    • [Your Ngrok Domain] with base Url domain. E.g. if you are using ngrok it would be https://1234.ngrok.io then your domain-name will be 1234.ngrok.io.
    • Zip up the contents of the Manifest folder to create a manifest.zip
    • Upload the manifest.zip to Teams (in the Apps view click "Upload a custom app")

Running the sample

App review: Overview

App permission: Permossion

Permission list: Permissionlist

Further Reading.