Edytuj

recommendation resource type

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.

Represents a Microsoft Entra ID best practice or improvement action recommended by Microsoft for your Microsoft Entra tenant.

The Microsoft Entra recommendation service runs daily to check your tenant against predefined conditions for every recommendation. If the service detects that a recommendation applies to your tenant, the corresponding recommendation object is generated and its status is set to active.

For more information, see What is Microsoft Entra recommendations?.

Inherits from recommendationBase.

Methods

Method Return type Description
List recommendation collection Get a list of the recommendation objects and their properties.
Get recommendation Read the properties and relationships of a recommendation object.
Postpone recommendation Mark the status of a recommendation object as postponed to a specified date and time.
Dismiss recommendation Mark the status of a recommendation object as dismissed.
Complete recommendation Mark the status of a recommendation object as completedByUser.
Reactivate recommendation Mark the status of a recommendation object as active.
Mark planned recommendation Mark the status of a recommendation object as planned.
Accept risk recommendation Mark the status of a recommendation object as riskAccepted.
Apply alternate mitigation recommendation Mark the status of a recommendation object as alternateMitigation.
Add tag recommendationTag Add a user-defined tag to a recommendation.
Remove tag recommendation Remove a user-defined tag from a recommendation.
Get tenant Secure Score tenantSecureScore collection Get historical Secure Score data for your tenant.

Properties

Property Type Description
actionSteps actionStep collection List of actions to take to complete a recommendation. Inherited from recommendationBase.
benefits String An explanation of why completing the recommendation will benefit you. Corresponds to the Value section of a recommendation shown in the Microsoft Entra admin center. Inherited from recommendationBase.
category recommendationCategory Indicates the category of intelligent guidance that the recommendation falls under. The possible values are: identityBestPractice, identitySecureScore, unknownFutureValue, mdiSecureScore. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: mdiSecureScore. Inherited from recommendationBase.

Supports $filter(eq).
categoryGroup recommendationCategoryGroup The business taxonomy group that the recommendation belongs to, used to organize recommendations in the Microsoft Entra admin center. The possible values are: strengthenAuthentication, detectAndRespondToThreats, enforceLeastPrivilege, governAppsCredentialsAndAgents, hardenInfrastructure, defenderForIdentity, unknownFutureValue. Inherited from recommendationBase. Read-only.

Supports $filter(eq).
completedBySystemDateTime DateTimeOffset The date and time when the recommendations service verified that the recommendation was fully remediated and set its status to completedBySystem. Is null if the recommendation wasn't completed by the system. Inherited from recommendationBase.
completedByUserDateTime DateTimeOffset The date and time when the recommendation was marked as completed by the user for the current review cycle. Is null if the recommendation wasn't completed by a user in the current cycle. Inherited from recommendationBase.
createdDateTime DateTimeOffset The date and time when the recommendation was detected as applicable to your directory. Inherited from recommendationBase.
currentScore Double The number of points the tenant has attained. Only applies to recommendations with category set to identitySecureScore. Inherited from recommendationBase.
displayName String The title of the recommendation. Inherited from recommendationBase.
failedReviewDateTime DateTimeOffset The date and time when the recommendations service most recently verified that one or more impacted resources the user marked as completed are still impacted, moving them to needsMoreAction. Is mutually exclusive with remediatedDateTime. Is null when no user-reviewed resource is currently failing verification. Inherited from recommendationBase.
featureAreas recommendationFeatureAreas collection The directory feature that the recommendation is related to. Inherited from recommendationBase.

Supports $filter(eq).
id String The unique identifier for the recommendation object generated for your tenant. This is a concatenation of your tenant ID and a Microsoft Entra ID-assigned nickname for the recommendation. For example, 7918d4b5-0442-4a97-be2d-36f9f9962ece_Microsoft.Identity.IAM.Insights.ThirdPartyApps. Inherited from recommendationBase.
impactStartDateTime DateTimeOffset The future date and time when a recommendation should be completed. Inherited from recommendationBase.
impactType String Indicates the scope of impact of a recommendation. tenantLevel indicates that the recommendation impacts the whole tenant. Other possible values include users, apps. Inherited from recommendationBase.
insights String Describes why a recommendation uniquely applies to your directory. Corresponds to the Description section of a recommendation shown in the Microsoft Entra admin center. Inherited from recommendationBase.
lastCheckedDateTime DateTimeOffset The most recent date and time a recommendation was deemed applicable to your directory. Inherited from recommendationBase.
lastModifiedBy String Name of the user who last updated the status of the recommendation. Inherited from recommendationBase.
lastModifiedDateTime DateTimeOffset The date and time the status of a recommendation was last updated. Inherited from recommendationBase.
maxScore Double The maximum number of points attainable. Only applies to recommendations with category set to identitySecureScore. Inherited from recommendationBase.
needsMoreActionResourceCount Int32 The number of impacted resources that the user marked as completed and that the recommendations service subsequently verified are still impacted (moved to needsMoreAction). This value is greater than zero exactly when failedReviewDateTime is set. Is null when the recommendation doesn't participate in the review lifecycle. Inherited from recommendationBase.
nistClassifications nistClassification collection The NIST Cybersecurity Framework (CSF) 2.0 categories that the recommendation maps to. Inherited from recommendationBase. Read-only.
postponeUntilDateTime DateTimeOffset The future date and time when the status of a postponed recommendation will be active again. Inherited from recommendationBase.
priority recommendationPriority Indicates the time sensitivity for a recommendation to be completed. Microsoft auto assigns this value. The possible values are: low, medium, high, critical, unknownFutureValue. Inherited from recommendationBase. Read-only.

Supports $filter(eq).
recommendationType recommendationType Friendly shortname to identify the recommendation. The possible values are: adfsAppsMigration, enableDesktopSSO, enablePHS, enableProvisioning, switchFromPerUserMFA, tenantMFA, thirdPartyApps, turnOffPerUserMFA, useAuthenticatorApp, useMyApps, staleApps, staleAppCreds, applicationCredentialExpiry, servicePrincipalKeyExpiry, adminMFAV2, blockLegacyAuthentication, integratedApps, mfaRegistrationV2, pwagePolicyNew, passwordHashSync, oneAdmin, roleOverlap, selfServicePasswordReset, signinRiskPolicy, userRiskPolicy, verifyAppPublisher, privateLinkForAAD, appRoleAssignmentsGroups, appRoleAssignmentsUsers, managedIdentity, overprivilegedApps, unknownFutureValue, longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests, aadGraphDeprecationApplication, aadGraphDeprecationServicePrincipal, mfaServerDeprecation. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: longLivedCredentials , aadConnectDeprecated , adalToMsalMigration , ownerlessApps , inactiveGuests , aadGraphDeprecationApplication , aadGraphDeprecationServicePrincipal , mfaServerDeprecation. Inherited from recommendationBase.

Currently, only a limited number are available. For more information, see Types of recommendations. Supports $filter(eq).
releaseType releaseType The current release type of the recommendation. The possible values are: preview, generallyAvailable, unknownFutureValue. Inherited from recommendationBase.
remediatedDateTime DateTimeOffset The date and time when the recommendations service verified that the impacted resources the user marked as completed were remediated, meaning the user-reviewed resources reached completedBySystem. Is superseded by failedReviewDateTime if a reviewed resource subsequently fails verification. Is null if the system hasn't verified a user-driven remediation in the current cycle. Inherited from recommendationBase.
remediationImpact String Description of the impact on users of the remediation. Only applies to recommendations with category set to identitySecureScore. Inherited from recommendationBase.
status recommendationStatus Indicates the status of the recommendation based on user or system action. The possible values are: active, completedBySystem, completedByUser, dismissed, postponed, unknownFutureValue, riskAccepted, thirdParty, planned, alternateMitigation, needsMoreAction. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: riskAccepted , thirdParty , planned , alternateMitigation , needsMoreAction. By default, a recommendation's status is set to active when the recommendation is first generated. Status is set to completedBySystem when our service detects that a recommendation which was previously active no longer applies. Inherited from recommendationBase.

Supports $filter(eq).
statusModifiedDateTime DateTimeOffset The date and time when the recommendation's status last changed, for example from active to completedByUser, dismissed, postponed, or needsMoreAction. Unlike lastModifiedDateTime, this value isn't updated when only the recommendation's insight data changes while the status stays the same. Is null until the recommendation's status changes for the first time. Inherited from recommendationBase.

Relationships

Relationship Type Description
impactedResources impactedResource collection The list of directory objects associated with the recommendation. Inherited from recommendationBase.
tags recommendationTag collection The user-defined free-form labels applied to the recommendation. The collection isn't directly writable; tags are created and removed through the addTag and removeTag actions. Inherited from recommendationBase.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.recommendation",
  "id": "String (identifier)",
  "actionSteps": [
    {
      "@odata.type": "microsoft.graph.actionStep"
    }
  ],
  "benefits": "String",
  "category": "String",
  "categoryGroup": "String",
  "completedBySystemDateTime": "String (timestamp)",
  "completedByUserDateTime": "String (timestamp)",
  "createdDateTime": "String (timestamp)",
  "currentScore": "Double",
  "displayName": "String",
  "failedReviewDateTime": "String (timestamp)",
  "featureAreas": [
    "String"
  ],
  "impactType": "String",
  "impactStartDateTime": "String (timestamp)",
  "insights": "String",
  "lastCheckedDateTime": "String (timestamp)",
  "lastModifiedDateTime": "String (timestamp)",
  "lastModifiedBy": "String",
  "maxScore": "Double",
  "needsMoreActionResourceCount": "Int32",
  "nistClassifications": [
    {
      "@odata.type": "microsoft.graph.nistClassification"
    }
  ],
  "postponeUntilDateTime": "String (timestamp)",
  "priority": "String",
  "remediatedDateTime": "String (timestamp)",
  "status": "String",
  "statusModifiedDateTime": "String (timestamp)",
  "remediationImpact": "String",
  "recommendationType": "String"
}