Newer Version Available
SecurityHealthCheckRisks
Represents your org’s security setting values,
risks, and Salesforce-recommended setting values. Only users with the "Modify All Data" user permission can
retrieve data from this object. Available in Tooling API version 37.0 and
later.
Supported SOAP Calls
query()
Supported REST HTTP Methods
GET
Fields
| Field | Details |
|---|---|
| DurableId |
|
| OrgValue |
|
| RiskType |
|
| SecurityHealthCheckId |
|
| Setting |
|
| SettingGroup |
|
| StandardValue |
|
Usage
Use this object to query your org’s security setting values, risks, and Salesforce-recommended setting values. Reading security settings and their security status is useful if you have multiple Salesforce applications that require consistency and compliance in their security posture.
This query gets a list of your org’s high risk
settings.
1SELECT RiskType, Setting, SettingGroup, OrgValue, StandardValue FROM SecurityHealthCheckRisks where RiskType=HIGH_RISKThis query gets your org’s Health Check score as well as a list of your org’s high
risk
settings.
1SELECT Score, (SELECT RiskType, Setting, SettingGroup, OrgValue, StandardValue FROM SecurityHealthCheckRisks where RiskType=HIGH_RISK) FROM SecurityHealthCheckThis query gets your org’s Health Check score and the security settings that meet the
Salesforce baseline
standard.
1SELECT Score, (SELECT RiskType, Setting, SettingGroup, OrgValue, StandardValue FROM SecurityHealthCheckRisks where RiskType=MEETS_STANDARD) FROM SecurityHealthCheckThis query lists all the values in the Salesforce baseline
standard.
1SELECT Setting, SettingGroup, StandardValue FROM SecurityHealthCheckRisks