Jump to content

HornbillTeamsBotAzureFunction


Recommended Posts

Recently a content pack update was released that added a “Microsoft Teams” key type to the keysafe.

This key type allows us to use the PostToChannel method to as a non-AAD admin user.

How I can modify this, so that the key type Microsoft Teams can be used, rather than the key type Microsoft:

$UserDetails = Get-AzureUser $InstanceName $InstanceKey $InstanceMicrosoftKey $Request.Body.from.aadObjectId.

$InstanceMicrosoftKey = 5 – Microsoft Key Type.

$InstanceMicrosoftKey = 6 – Microsoft Teams Key Type.

If I just change $InstanceMicrosoftKey from 5 to 6, I get a message in Teams saying that an error has occurred, so it’s obviously not as simple as just calling the other key type.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...