Forum Discussion
Unable to get user details after Notification Bot is app installed
I've a Notification Bot, which is currently deployed to my organization, and all the users are able to see it and add to their teams app individually. I want to send welcome message to all users who've installed the app. I've an endpoint added in the bot framework which gives me an update whenever someone adds or remove the app in their teams app. But whenever someone is installing the app, I'm getting this error "Failed to acquire token". I've tried to install the app from Admin teams to all users as well from particular user by going to "Teams store > Built for your organization > App > click on "Add"". But both of the options are giving me same error.
Here is the Bot permission given by admin in Portal Azure
I've added the Application Id as my BotId according to the documentation and BotSecret as well
Please help me in solving this problem.
P.S. I don't know what this "d6d49420-xxxx-xxxx-xxxx-xxxxxx" resembles while the former one is my BotId i.e., "28c8b3b1-xxxx-xxxx-xxxx-xxxxxxxx".
Thanks in advance.
2 Replies
- Meghana-MSFT
Microsoft
Thank you for reporting this, we will check this and get back to you.- Meghana-MSFT
Microsoft
sarkarprashant - Apologies for the delay, looking at the error, it seems like the tenant id is configured incorrectly. Please make sure that your authentication request is being sent to the correct tenant. Sometimes, this error can occur if the request is sent to the wrong tenant. Confirm that the application has been installed by the administrator of the tenant or consented to by any user in the tenant. Admin can give consent using the following URL - https://login.microsoftonline.com/common/adminconsent?client_id=your_client_id