Add Setthing permissions of Graph API

I.H byD 1 Reputation point
2022-09-05T02:46:12.56+00:00

Hi, my batch system developed using Graph API threw an error .
The error is
" API requires one of ' ChannelSettings.Read.All, Channel.ReadBasic.All,ChannelSettings.ReadWrite.All "

In that system , Getting channel information using "Get-MgTeamChannel" of Graph API .
So I set permissions ' Group.ReadWrite.All' in AzureAD.
see below...
(https://learn.microsoft.com/ja-jp/graph/api/channel-get?view=graph-rest-1.0&tabs=http)
Permission type is Delegation (work or school account).

It was working fine at the end of July.
But,  Around August 20th, the System threw that error .
I solved it by adding "ChannelSettings.ReadWrite.All" of permissions .

I ask )

Why did I suddenly need to add permissions?
The useful information was not posted on the blog of Graph API changelog.
(https://developer.microsoft.com/en-us/graph/changelog/?search=)

Please give me an answer.
sorry i'm not good at english... :)

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,575 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RajeshKumarMSFT 1,971 Reputation points Microsoft Vendor
    2022-09-05T15:57:11.52+00:00

    Hi @I.H byD ,

    Hope you are doing well,

    I am able to get the teams channel messages with Get-MgTeamChannel Cmd let without using ChannelSettings.ReadWrite.All. permission ,under delegate permission.

    I have used these scopes "Group.Read.All,Group.Readwrite.All,Directory.Read.All,Directory.Readwrite.All"
    Please find the sample script screenshot with the details

    237856-getmgteams1.png

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