Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block attachements of a message as an app #319

Closed
unglaublicherdude opened this issue Aug 14, 2024 · 4 comments
Closed

Block attachements of a message as an app #319

unglaublicherdude opened this issue Aug 14, 2024 · 4 comments
Labels
status no recent activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:feature New experience request type:question An issue that's a question

Comments

@unglaublicherdude
Copy link

Is your feature request related to a problem? Please describe the problem.

We are trying to implement an antivirus for teams and have already found the chatMessagePolicyViolation. When using this, a message can replaced with an alert-message and the original content is gone. But setting a policy violation will not change attachements. And when we basically replace the file on onedrive, the preview in the message will still persist which is a bit confusing for users.

Describe the solution you'd like.

I would like a way to also remove attachements from a message when a chatMessagePolicyViolation is set.

Additional context?

No response

@unglaublicherdude unglaublicherdude added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:feature New experience request labels Aug 14, 2024
@andrueastman
Copy link
Member

Thanks for raising this @unglaublicherdude

Any chance you tried updating the message by sending a PATCH request with the attachment removed? This would be a variant of example 4 at the docs link below.

https://learn.microsoft.com/en-us/graph/api/chatmessage-update?view=graph-rest-1.0&tabs=http#example-4-update-the-content-with-attachments-of-a-message-using-delegated-permissions

@andrueastman andrueastman added type:question An issue that's a question status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Aug 27, 2024
@unglaublicherdude
Copy link
Author

Can this be done via a bot Account? I guess that's where we failed

@microsoft-github-policy-service microsoft-github-policy-service bot added needs attention 👋 and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Aug 27, 2024
@andrueastman
Copy link
Member

The docs suggest that application permissions should work for the API.

However, as this is really an API side functionality question, the best place to ask would be at https://aka.ms/askGraph. This repo is mainly intended for issues related to the graph SDK so we may not be best placed to answer this.

@andrueastman andrueastman added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed needs attention 👋 labels Aug 28, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status no recent activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:feature New experience request type:question An issue that's a question
Projects
None yet
Development

No branches or pull requests

2 participants