Share via

Error when executing the command "Get-MgTeamChannelMessage"

Mina 15 Reputation points
2023-06-27T11:26:30.47+00:00

The following error occurs when executing the command "Get-MgTeamChannelMessage".

I cannot assign the "ChannelMessage.Read.All" authority due to the restrictions of the organization I belong to.

Please let us know how to deal with this case.

Get-MgTeamChannelMessage : Missing scope permissions on the request. API requires one of 'ChannelMessage.Read.All'. ScoAPI requires one of 'ChannelMessage.Read.All'.

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Mehtab Siddique (MINDTREE LIMITED) 971 Reputation points
    2023-06-27T11:40:44.26+00:00

    Hi @Mina,

    For accessing the above query, you need to have below permissions present in your application or you have to be global admin to access this data.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.