Management apis says not authorized

Muthu Kumar 21 Reputation points
2021-05-11T12:19:03.83+00:00

Hey, I Am using Office 365 service and management apis to get services list.
But every time I try using the api "../ServiceComms/Services".

To be precise refer the below for documentation
https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference

This is the response I get
{
"error":{
"code":"","message":"Authorization has been denied for this request."
}
}

FYI - I am using an enterprise account.

Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
1,938 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Hua-MSFT 27,466 Reputation points
    2021-05-12T07:29:30.353+00:00

    @Muthu Kumar

    As your issue is realted to Office development, but the tag "office-deployment" focus more on general issues of Office deployment, to better help you, it's recommended to post a new thread on the following forum.
    Office developer community

    Thanks for your understanding.

    According to the sentence from your shared link, "The API relies on Microsoft Azure Active Directory and the OAuth2 protocol for authentication and authorization", I personally suggest you check whether you have registered a user in Azure AD and configures it with permissions at the appropriate scope,
    which could help applications request OAuth2 access tokens necessary for calling the API.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful