Admin consent required for sending channel message?

Jasmin Patel 1 Reputation point
2020-06-29T22:16:28.01+00:00

I am trying to acquire access token for "Channel.ReadBasic.All", "ChannelMessage.Send", "Team.ReadBasic.All", "User.Read" scopes but i got error like you need admin approval.

11022-adminapproval.png

As per azure portal, these four scopes don't required admin consent.10994-azureportal.png

I am using iOS SDK to acquire token.

Note: I am able to get token with same account on Graph Explorer and also able to send message without admin consent.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,187 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,761 Reputation points
    2020-07-02T06:04:34.107+00:00

    @JasminPatel-0628 Make sure Azure Portal > Azure Active Directory > Enterprise applications > User settings > Users can consent to apps accessing company data on their behalf > Set this option to YES. Setting this option to NO, won't allow users to provide consent and would require Global Administrators to consent on behalf of the organization for the users to access the application.

    Please refer to screenshot below:

    11178-image.png


    Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.

    0 comments No comments

Your answer

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