Get portal requests without MFA
This article explains how to obtain a list of the most recent requests from users who access Partner Center without completing multifactor authentication (MFA).
Prerequisites
- Credentials as described in Partner Center authentication. This scenario supports authentication with App+User credentials.
REST request
Request syntax
Method | Request URI |
---|---|
GET | {baseURL}/v1/nonMfaCompliantPartnerPrincipals |
Request headers
- For more information, see Partner Center REST headers.
Request body
None.
Request example
GET https://api.partnercenter.microsoft.com/v1/nonMfaCompliantPartnerPrincipals HTTP/1.1
Authorization: Bearer <token>
Host: api.partnercenter.microsoft.com
Accept: application/json
MS-RequestId: 8f489776-a3f3-47cb-91c3-538e1f70f560
MS-CorrelationId: e72e1dc3-4abd-4ce0-908b-d23fdaedcb28
Connection: keep-alive
REST response
If successful, this method returns a collection of Portal request resources in the response body.
Response success and error codes
Each response comes with an HTTP status code that indicates success or failure and other debugging information. Use a network trace tool to read this code, error type, and other parameters. For the full list, see Error Codes.
Response example
HTTP/1.1 200 OK
Content-Length: 296
Content-Type: application/json
MS-CorrelationId: 4cb80cbe-566b-4d8b-8b8f-af1454b73089
MS-RequestId: 566330a7-1e4b-4848-9c23-f135c70fd810
Date: Thu, 23 Apr 2020 22:10:30 GMT
{
"totalCount": 1,
"items": [
{
"objectId": "adc77aa5-7968-4c57-9f48-361018265c1a",
"tenantId": "6e6aef4a-4ca9-40a8-b5bf-b53a1923c540",
"upn": "portalnonmfa@yourdomain.onmicrosoft.com",
"lastNonMfaCompliantRequestDateTime": "2020-04-21T22:09:53.051"
}
],
"attributes": {
"objectType": "Collection"
}
}
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk