I’m working with a Teams bot using the bot framework and trying to figure out how to get the actual organization name from the tenant information. When my bot processes messages, I can access the activity.channelData.tenant object through the bot context, but it only provides the tenant id field.
Let me give you an example of what I’m dealing with. Say someone from ContosoLab Corp is using my bot across different Teams channels like Sales Team, Marketing Team, and Dev Team. I can easily retrieve the names of these teams and extract the tenantId that corresponds to the “ContosoLab Corp” organization. However, I’m stuck on how to actually get the readable organization name “ContosoLab Corp” from just that tenant identifier.
Is there some API method or property in the botbuilder framework that allows me to convert a tenant ID into the human-readable organization name? Any help would be appreciated!