Skip to content

Cannot set username in notification action for MS Teams alert #81743

Open
@ReneGreen27

Description

@ReneGreen27

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Create an Alert, go to the Step 4 Actions and set Level to MS Teams and in the section that says "username or channel" a username is not able to be set. See below
Image

When attempting to add either a member email or the user name associated to the user email the following error occurred (red circled is the email address/ user name)

Image

Looking at the code base, it seems like what is expected is channel IDs and not user email addresses/ usernames even though the preview says "username or channel"?
https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/msteams/actions/notification.py

Associated internal ticket for reference #136200

Expected Result

To be able to notify via MS Teams for both usernames and channels

Actual Result

Only able to notify via channel

Product Area

Alerts

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions