Skip to content

Conversation

MehakBindra
Copy link
Contributor

@MehakBindra MehakBindra commented Sep 8, 2025

  1. In .vscode remove configuration for starting app in test tools.
  2. Add aad.manifest.json to add:
      "resourceAppId": "Microsoft Graph",
      "resourceAccess": [
        {
          "id": "User.Read",
          "type": "Scope"
        }
      ]
  1. Make bot SINGLE TENANT in azurebot.bicep.
    msaAppId: botAadAppClientId
    msaAppType: 'SingleTenant'
    msaAppTenantId: tenantId
  1. Add botServicesMicrosoftGraphConnection resource in azurebot.bicep with correct scopes:
    scopes: 'User.Read'
  2. With the graph template, user can do sign in with graph and view profile and mail info.
Screenshot 2025-09-08 162127 Screenshot 2025-09-08 162145

CAVEAT: currently need to create Service Principal manually when app is registered.
Should be automated soon.
Screenshot 2025-09-08 162906

Copy link
Contributor

@lilyydu lilyydu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job figuring this out, @MehakBindra!! Just a small nit with the AppOptions

Copy link
Contributor

@singhk97 singhk97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@MehakBindra MehakBindra merged commit 5430fe0 into main Sep 16, 2025
9 checks passed
@MehakBindra MehakBindra deleted the mehak/graph branch September 16, 2025 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants