MS Teams invite guest using graph api - microsoft-teams

I'm trying to invite a guest (external user) to my Microsoft Teams team using graph api. I'm doing the following:
Create the invite using create invite api available in Microsoft graph
Add the guest to the team upon success
On the guest side, they receive an invitation email which guides them through the account creation process. Post microsoft account creation, they are asked to create a Teams account (most of our guests do not have a Teams account as well). During this process, they are being asked for Teams organization name which takes them to a completely different Teams org than the one that they were invited for.
Is there anything wrong in what I'm doing?

Related

How to Get User Data from Microsoft Teams Bot Just Once

My web app bot is installed in Teams as an app. (Only in my company(AD) ) Now, I want to fetch users' information such as email, name etc... I don't want to send oauth card again and again to users.
Is there any solution which provides fetching users' (team members') information? Can you please share all setups in Azure AD and Bot framework?
Thanks!

LUIS deployed through SharePoint - How to get user data?

We have deployed LUIS V4 in our Azure Platform, and made it available to our employee through SharePoint. It is currently open and does not need log in to be used.
We would like to capture information about who the person interacting with the bot is; is there any way that information related to the user can be retrieved? (employees to use the bot must be authenticated to Azure as it is within a SharePoint, but the bot doesn't require authentication as mentioned)
Thank you!
If you are just using LUIS, then no, it does not do any user specific tasks. It only translates an utterance (phrase) into specific actions (intents and entities), also does not store any state.
So all authorisations and user customisations need to be done outside of LUIS, with plain code. If you are using Azure/Microsoft Bot, you can hook up a channel to LUIS and use the id to identify user (skype id, phone number, microsoft teams id...)
A bit of info for connecting Azure Bot with SharePoint.

Is there any way to add and get equipments in a meeting room using Microsoft APIs?

I am new to Microsoft APIs. I have created equipments, rooms and room-list but I'm not able to add/connect equipments to rooms. I also could not find any sufficient documentation regarding this.
Is there any way to add and get equipments in a meeting room using Microsoft API?
Unfortunately, it is not currently possible to add equipment or create room resources through Microsoft Graph API or Azure AD Graph API. I recommend that you visit User Voice and add this as a suggestion. (I'm also linking Azure's User Voice.)
Currently you can only create Room and Equipment Resources via the Office 365 Admin Portal or the Exchange Admin Center.

How to get Microsoft Graph access token using email id in the skype for business bot to add an event to Calendar

In Skype for Business Bot , User is pre-authenticated, need to get Microsoft graph access token , in order to perform Microsoft Graph operations (such as adding events to calendar) in programmatic way..
Please suggest how Microsoft Graph Apis can be integrated with Azure Bot for Skype for business channel.
We want Skype for Business bot to book the meeting just like described here
But instead of Teams need to use Skype for Business. but basically this code line will ask user to explicitly in this code sample
"await context.Forward(new AzureAuthDialog("
There is another sample that need Adminconsent to update the calendar of specific user
Swati
You cannot reuse anything from the pre-authentication. Like any other channel, you have to go through a specific authentication phase.
You have a great sample on the official repository to do this, here: https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/24.bot-authentication-msgraph

Chatbot with Microsoft Office365/outlook Calendar

I want to develop a chatbot and want to integrate Microsoft Office365/Outlook calendar.
So flow of application will be like this:
1) From Admin panel Manager user will invite Partner users and partner users will come and connect to their office 365 calendar and and enable access to share it. Now this calendar will be available for chatbot.
2) on FrontEnd(chatbot) guest or registered users will provide their emails and book meeting from the available timing based on calendar.
.. guest users will provide there emails and get the available timing from a partner user calendar.
I started looking at Microsoft Graph API.
Can someone provide me with a good start?
To do this you will have to use the authentication features in bot framework. There is a good walkthrough to get you started. There is also a sample that demonstrates the use of the MS Graph API.

Resources