title | description | ms.service | ms.subservice | ms.topic | author | ms.author | ms.reviewer | ms.date |
---|---|---|---|---|---|---|---|---|
Prerequisites to programmatically access analytics data |
Learn the requirements you need to meet before you can programmatically access commercial marketplace analytics data in Partner Center. |
marketplace |
partnercenter-marketplace-publisher |
article |
smannepalle |
smannepalle |
sroy |
03/14/2022 |
Before you can programmatically access commercial marketplace analytics data, you need to meet the following requirements.
To access commercial marketplace analytics data programmatically, you need to be enrolled in the commercial marketplace program and have a Partner Center account. To learn how, see Create a commercial marketplace account in Partner Center.
Regular user credentials cannot be used for programmatic access of commercial marketplace analytics data. An Azure Active Directory (Azure AD) application needs to be created along with a secret to access the analytics APIs. To learn how to create an Azure AD application and secret, see Quickstart: Register an application with the Microsoft identity platform.
The Azure AD application you created in the Azure portal needs to be linked to your Partner Center account. The steps are as follows:
-
Sign in to Partner Center.
-
In the upper right, select the gear icon and then select Account settings.
-
In the Account settings menu, select User management.
-
Select Azure AD applications then + Create Azure AD application.
-
Select the Azure AD application you created on the Azure portal, then Next.
-
Select the Manager(Windows) checkbox and then select Add.
:::image type="content" source="./media/analytics-programmatic-access/azure-ad-roles.png" alt-text="Illustrates the Create Azure AD application page with the check boxes for selecting roles.":::
You need to Generate an Azure AD token using the Application (client) ID. This ID helps to uniquely identify your client application in the Microsoft identity platform and the client secret from the previous step. For the steps to generate an Azure AD token, see Service to service calls using client credentials (shared secret or certificate).
Note
The token is valid for one hour.