편집

다음을 통해 공유


List impactedResources

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Get the impactedResource objects for a recommendation.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) DirectoryRecommendations.Read.All DirectoryRecommendations.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application DirectoryRecommendations.Read.All DirectoryRecommendations.ReadWrite.All

Important

In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role with a supported role permission. The following least privileged roles are supported for this operation.

  • Reports Reader
  • Security Reader
  • Global Reader
  • Security Operator
  • Application Administrator
  • Security Administrator
  • Cloud Application Administrator

HTTP request

GET /directory/recommendations/{recommendationId}/impactedResources

Optional query parameters

This method supports the $select OData query parameter to help customize the response. It also supports $count as a URL segment to retrieve the raw count of impacted resources. That is, .../impactedResources/$count. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of impactedResource objects in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/directory/recommendations/0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.TurnOffPerUserMFA/impactedResources

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#directory/recommendations('0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.ApplicationCredentialExpiry')/impactedResources",
    "value": [
        {
          "id": "e97adb14-7c12-4363-8a80-d6ac86a51e2f",
          "subjectId": "1d9d9eb9-e956-4dab-881a-b4f4f35293ef",
          "recommendationId": "0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.ApplicationCredentialExpiry",
          "resourceType": "app",
          "addedDateTime": "2022-03-19T09:40:39.0420371Z",
          "postponeUntilDateTime": null,
          "lastModifiedDateTime": "2022-04-04T20:43:28.9687029Z",
          "lastModifiedBy": "bc7fae74-90dd-4054-b38e-f2ccc8b7b904",
          "displayName": "Contoso IWA App Tutorial",
          "owner": null,
          "rank": 1,
          "portalUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Credentials/appId/1d9d9eb9-e956-4dab-881a-b4f4f35293ef",
          "apiUrl": null,
          "status": "completedBySystem",
          "additionalDetails": [
            {
              "key": "ExpiringCredentialsCount",
              "value": "1"
            }
          ]
        },
        {
          "id": "fd1482c2-3aab-4cad-8182-fc6adecf40ef",
          "subjectId": "ccec02c6-e69b-47d8-b6a0-c6cf9d491a4f",
          "recommendationId": "0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.ApplicationCredentialExpiry",
          "resourceType": "app",
          "addedDateTime": "2022-03-19T09:40:39.0413974Z",
          "postponeUntilDateTime": null,
          "lastModifiedDateTime": "2022-04-15T04:24:09.7862983Z",
          "lastModifiedBy": "0ffbbb05-658e-4f32-ae3e-7e717d7d9c91",
          "displayName": "Contoso",
          "owner": null,
          "rank": 1,
          "portalUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Credentials/appId/ccec02c6-e69b-47d8-b6a0-c6cf9d491a4f",
          "apiUrl": null,
          "status": "completedBySystem",
          "additionalDetails": [
            {
              "key": "ExpiringCredentialsCount",
              "value": "1"
            }
          ]
        }
    ]
}