Hallo,
der Endpunkt POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages
oder PATCH https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}
liefert über msgraph immer eine Fehlermeldung zurück, obwohl alle Berechtigungen entsprechend gesetzt sind.
{"error":{"code":"Forbidden","message":"Missing role permissions on the request. API requires one of 'Teamwork.Migrate.All'. Roles on the request 'TeamSettings.ReadWrite.All, TeamMember.Read.All, Chat.UpdatePolicyViolation.All, Bookings.Manage.All, Bookings.ReadWrite.All, TeamsActivity.Read.All, TeamMember.ReadWriteNonOwnerRole.All, Mail.ReadWrite, Channel.Delete.All, User.ReadWrite.All, BookingsAppointment.ReadWrite.All, ChannelSettings.Read.All, Calendars.Read, Mail.ReadBasic.All, ChatMember.ReadWrite.All, Channel.ReadBasic.All, Group.Read.All, Directory.ReadWrite.All, TeamsActivity.Send, MailboxSettings.Read, Contacts.ReadWrite, Team.Create, Group.Create, Group.ReadWrite.All, User.EnableDisableAccount.All, Bookings.Read.All, Chat.ReadWrite.WhereInstalled, User.Invite.All, ChatMessage.Read.All, Directory.Read.All, User.Read.All, ChannelMember.Read.All, Chat.Read.WhereInstalled, Calendars.ReadBasic.All, GroupMember.Read.All, TeamMember.ReadWrite.All, Team.ReadBasic.All, Mail.Read, Chat.Read.All, ChannelMessage.Read.All, User.Export.All, TeamSettings.Read.All, Chat.ReadBasic.WhereInstalled, Calendars.ReadWrite, Mail.Send, Chat.ReadWrite.All, User.ManageIdentities.All, ChannelMessage.UpdatePolicyViolation.All, MailboxSettings.ReadWrite, Teamwork.Read.All, ChannelMember.ReadWrite.All, GroupMember.ReadWrite.All, Contacts.Read, Mail.ReadBasic, ChannelSettings.ReadWrite.All, Channel.Create, ChatMember.ReadWrite.WhereInstalled, Chat.ReadBasic.All, Chat.ManageDeletion.All, ChatMember.Read.All, ChatMember.Read.WhereInstalled, Chat.Create'.","innerError":{"date":"2024-10-14T12:01:11","request-id":"ba5a2a59-0529-4212-86fa-4a0aa82d3476","client-request-id":"ba5a2a59-0529-4212-86fa-4a0aa82d3476"}}}