Skip to main content

microsoft_teams_user_identities

Creates, updates, deletes, gets or lists a microsoft_teams_user_identities resource.

Overview

Namemicrosoft_teams_user_identities
TypeResource
Idaws.chatbot.microsoft_teams_user_identities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aws_user_identitystringThe AWS user identity ARN used to associate a Microsoft Teams user Identity with an IAM Role. (pattern: <code>arn:aws:(iam|sts)::[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>)
chat_configuration_arnstringThe Amazon Resource Name (ARN) of the MicrosoftTeamsChannelConfiguration associated with the user identity to delete. (pattern: <code>arn:aws:(wheatley|chatbot):[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>)
iam_role_arnstringA user-defined role that AWS Chatbot assumes. This is not the service-linked role. For more information, see IAM policies for AWS Chatbot in the AWS Chatbot Administrator Guide. (pattern: <code>arn:aws:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>)
team_idstringThe ID of the Microsoft Teams authorized with AWS Chatbot. To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more information, see Step 1: Configure a Microsoft Teams client in the AWS Chatbot Administrator Guide. (pattern: <code>[0-9A-Fa-f]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}</code>)
teams_channel_idstringThe ID of the Microsoft Teams channel. (pattern: <code>([a-zA-Z0-9-=+/.,])*%3[aA]([a-zA-Z0-9-=+/.,])%40([a-zA-Z0-9-_=+/.,])</code>)
teams_tenant_idstringThe ID of the Microsoft Teams tenant. (pattern: <code>[0-9A-Fa-f]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}</code>)
user_idstringThe Microsoft Teams user ID. (pattern: <code>[0-9A-Fa-f]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_microsoft_teams_user_identitiesselectregionA list all Microsoft Teams user identities with a mapped role.
delete_microsoft_teams_user_identitydeleteregionIdentifes a user level permission for a channel configuration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

A list all Microsoft Teams user identities with a mapped role.

SELECT
aws_user_identity,
chat_configuration_arn,
iam_role_arn,
team_id,
teams_channel_id,
teams_tenant_id,
user_id
FROM aws.chatbot.microsoft_teams_user_identities
WHERE region = '{{ region }}' -- required
;

DELETE examples

Identifes a user level permission for a channel configuration.

DELETE FROM aws.chatbot.microsoft_teams_user_identities
WHERE region = '{{ region }}' --required
;