This code sample identifies teams with incoming webhooks
Disclaimer: This script is provided as a sample as-is.
Note: This sample script is using Client ID and Secret and runs in the application context.
- Register Entra App ID. While registering the app:
- Provide Name
- Selet Accounts in this org directory only (Single Tenant)
- Rediret URI - empty
- Gather the Tenant Id, Client Id, Client Secret
- Ensure below application permissions are added and admin consent granted.
- Group.Read.All
- TeamsAppInstallation.Read.All
- Update the script with the Tenant Id, Client id, and Client Secret.
- Run the script
You can see the sample output file in this repository.