שתף באמצעות


Get App and User API requests

Applies to: Partner Center API

This article explains how to obtain a list of all partner user requests within a tenant using REST APIs.

Note

This API only returns the most recent API requests made by APP + User credential with maximum 10K limit.

Prerequisites

REST request

Request syntax

Method Request URI
GET {baseURL}/v1/partnerRequests

Request headers

Request body

None.

Request example

GET https://api.partnercenter.microsoft.com/v1/partnerRequests HTTP/1.1
Authorization: Bearer <token>
Host: api.partnercenter.microsoft.com
Content-Type: application/json

REST response

If successful, this method returns a collection of API request details resources in the response body.

Response success and error codes

Each response comes with an HTTP status code that indicates success or failure and additional debugging information. Use a network trace tool to read this code, error type, and additional parameters. For the full list, see Error Codes.

Response example

HTTP/1.1 200 OK
Content-Length: 2960
Content-Type: application/json
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd
MS-RequestId: 566330a7-1e4b-4848-9c23-f135c70fd810
Date: Thu, 21 May 2020 22:29:17 GMT
{
    "totalCount": 2,
    "items": [
        {
            "requestId": "6c583d8d-46cd-420c-ae3d-35b6dfdcdb21",
            "correlationId": "",
            "operationName": "Get /v{version}/nonMfaCompliantPartnerPrincipals",
            "requestDateTime": "2020-05-21T21:02:10.31",
            "ipAddress": "13.88.20.150",
            "objectId": "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb",
            "tenantId": "aaaabbbb-0000-cccc-1111-dddd2222eeee",
            "upn": "admin@yourdomain.onmicrosoft.com",
            "applicationId": "00001111-aaaa-2222-bbbb-3333cccc4444",
            "mfaCompliant": true
        },
        {
            "requestId": "09f8e434-a9ce-43ea-a9ac-270fbb22371a",
            "correlationId": "",
            "operationName": "Get /v{version}/customers/{customer_id}/subscriptions?order_id={order_id_value}&mpn_id={mpn_id_value}",
            "requestDateTime": "2020-05-21T22:18:35.73",
            "ipAddress": "13.88.20.150",
            "objectId": "bbbbbbbb-1111-2222-3333-cccccccccccc",
            "tenantId": "aaaabbbb-0000-cccc-1111-dddd2222eeee",
            "upn": "portalnonmfa@yourdomain.onmicrosoft.com",
            "applicationId": "00001111-aaaa-2222-bbbb-3333cccc4444",
            "mfaCompliant": false
        }
    ],
    "attributes": {
        "objectType": "Collection"
    }
}