afv-library/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/TransactionSecurityPolicy.json

105 lines
13 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"sections": [
"title",
"description",
"supported_soap_calls",
"fields",
"wsdl_segment"
],
"title": "TransactionSecurityPolicy - Tooling API",
"description": "Represents a transaction security policy definition.",
"supported_soap_calls": "`create()`, `delete()`, `query()`, `retrieve()`, `update()`, `upsert()`",
"fields_columns": [
"type",
"properties",
"description"
],
"fields": {
"ActionConfig": {
"type": "textarea",
"properties": "Create, Update",
"description": "Describes the action to take when the matching Transaction Security policy is triggered. Also indicates the type of notifications selected and the ID of the intended recipient. The recipient must be active and assigned the Modify All Data and View Setup user permissions. Multiple actions can be taken. The actions available depend on the EventType field."
},
"ApexPolicyId": {
"type": "reference",
"properties": "Filter, Group, Nillable, Sort",
"description": "Represents the Apex TxnSecurity.PolicyCondition or TxnSecurity.EventCondition interface for this policy."
},
"BlockMessage": {
"type": "string",
"properties": "Filter, Nillable, Sort",
"description": "The custom message a user receives when their action is blocked by a policy. Used in Real-Time Event Monitoring only. Maximum of 1000 characters. This field appears as null when the default message option is selected and is available only when EventName is set to ApiEvent, ListViewEvent, and ReportEvent. Available in API version 49.0 and later."
},
"CustomEmailContent": {
"type": "string",
"properties": "Filter, Nillable, Sort,",
"description": "The administrator-created custom email content sent when a policy is triggered. Used in Real-Time Event Monitoring only. Maximum of 1333 characters. This field is null when the Custom Email Content setting is selected in the UI but no message content is entered. Available in API version 54.0 and later.Custom messages arent translatable."
},
"Description": {
"type": "string",
"properties": "Filter, Nillable, Sort",
"description": "The description entered for this policy. This field available in API 39.0 and later."
},
"DeveloperName": {
"type": "string",
"properties": "Filter, Group, Sort",
"description": "The API, or program name, for this policy. Note: Only users with View DeveloperName OR View Setup and Configuration permission can view, group, sort, and filter this field."
},
"EventName": {
"type": "picklist",
"properties": "Filter, Group, Nillable, Restricted picklist, Sort",
"description": "Used in Real-Time Event Monitoring only. Indicates the name of the event the policy monitors. This field is available in API 31.0 and later. Valid values are: ApiEvent—Tracks these user-initiated read-only API calls: query(), queryMore(), and count(). Captures API requests through SOAP API and Bulk API for the Enterprise and Partner WSDLs. Tooling API calls and API calls originating from a Salesforce mobile app arent captured. CredentialStuffingEventStore—Tracks when a user successfully logs into Salesforce during an identified credential stuffing attack. Credential stuffing refers to large-scale automated login requests using stolen user credentials.This value is available in API 49.0 and later. FileEventStore (beta)—Tracks when a user downloads, previews, or uploads a file. FileEventStore is a big object that stores the event data of FileEvent. This object is available in API version 57.0 and later. ListViewEvent—Tracks when users access data with list views using Lightning Experience, Salesforce Classic, or the API. It doesnt track list views of Setup entities. LoginAnomalyEventStore—Stores the records of data access anomalies that are caused by potentially malicious login actions. LoginAsEvent—Tracks the login activity of admins who log in to Salesforce as other users. This object is available in API version 46.0 and later. LoginEvent—LoginEvent tracks the login activity of users who log in to Salesforce. PermissionSetEventStore—Tracks changes to permission sets and permission set groups. ReportAnomalyEventStore—Tracks anomalies in how users run or export reports, including unsaved reports. This value is available in API 49.0 and later. ReportEvent—Tracks when reports are run in your org. SessionHijackingEventStore—Tracks when unauthorized users gain ownership of a Salesforce users session with a stolen session identifier. To detect such an event, Salesforce evaluates how significantly a users current browser fingerprint diverges from the previously known fingerprint using a probabilistically inferred significance of change. This value is available in API 49.0 and later."
},
"EventType": {
"type": "picklist",
"properties": "Filter, Group, Nillable, Restricted picklist, Sort",
"description": "Used in Legacy Transaction Security only. Indicates the type of event the policy monitors. Valid values are: AccessResource—Notifies you when the selected resource has been accessed. AuditTrail—Reserved for future use. DataExport—Notifies you when any API query is made, such as from the Data Loader API client, or when a Report export occurs. Entity—Notifies you on use of an object type such as an authentication provider or chatter post. Login—Notifies you when a user logs in. Note: As of Summer '20, Legacy Transaction Security is a retired feature in all Salesforce orgs."
},
"ExecutionUserId": {
"type": "reference",
"properties": "Filter, Group, Nillable, Sort",
"description": "Used in Legacy Transaction Security only. The ID of an active user who is assigned the Modify All Data and View Setup user permissions. Note: As of Summer '20, Legacy Transaction Security is a retired feature in all Salesforce orgs."
},
"FullName": {
"type": "string",
"properties": "Create, Group, Nillable",
"description": "The full name of the associated object in the Metadata API. Use to avoid race conditions on create, before you have IDs. Query this field only if the query result contains no more than one record. Otherwise, an error is returned. If more than one record exists, use multiple queries to retrieve the records. This limit protects performance."
},
"ManageableState": {
"type": "ManageableState enumerated list",
"properties": "Filter, Group, Nillable, Restricted picklist, Sort",
"description": "Indicates the manageable state of the specified component that is contained in a package: beta deleted deprecated deprecatedEditable installed installedEditable released unmanaged"
},
"MasterLabel": {
"type": "string",
"properties": "Filter, Group, Sort",
"description": "The policys name. Important: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations."
},
"Metadata": {
"type": "mns:TransactionSecurityPolicy",
"properties": "Create, Nillable, Update",
"description": "The policys metadata. See the Metadata API Developer Guide for details."
},
"NamespacePrefix": {
"type": "string",
"properties": "Filter, Group, Nillable, Sort",
"description": "The namespace prefix associated with this object. Each Developer Edition organization that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix__componentName notation. The namespace prefix can have one of the following values: In Developer Edition organizations, the namespace prefix is set to the namespace prefix of the organization for all objects that support it. There is an exception if an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This fields value is the namespace prefix of the Developer Edition organization of the package developer. In organizations that are not Developer Edition organizations, NamespacePrefix is only set for objects that are part of an installed managed package. There is no namespace prefix for all other objects."
},
"ResourceName": {
"type": "string",
"properties": "Filter, Group, Nillable, Sort",
"description": "Used in Legacy Transaction Security only. A resource used to narrow down the conditions under which the policy triggers. For example, with a DataExport event, you can select a resource Lead to specifically monitor export activity occurring on your Lead entities. The resources available depend on the EventType field. Note: As of Summer '20, Legacy Transaction Security is a retired feature in all Salesforce orgs."
},
"State": {
"type": "picklist",
"properties": "Filter, Group, Restricted picklist, Sort",
"description": "Indicates whether the policy is active. Valid values are: Disabled Enabled"
},
"Type": {
"type": "picklist",
"properties": "Filter, Group, Restricted picklist, Sort",
"description": "The type of validation that the policy uses. The valid values are: CustomApexPolicy— Created with Apex editor. CustomConditionBuilderPolicy— Created with Condition Builder The default value is CustomApexPolicy."
}
},
"wsdl_segment": "```xml\n<xsd:simpleType name=\"MonitoredEvents\">\n <xsd:restriction base=\"xsd:string\">\n <xsd:enumeration value=\"AuditTrail\"/>\n <xsd:enumeration value=\"Login\"/>\n <xsd:enumeration value=\"Entity\"/>\n <xsd:enumeration value=\"DataExport\"/>\n <xsd:enumeration value=\"AccessResource\"/>\n </xsd:restriction>\n</xsd:simpleType>\n<xsd:simpleType name=\"TransactionSecurityEventName\">\n <xsd:restriction base=\"xsd:string\">\n <xsd:enumeration value=\"ReportEvent\"/>\n <xsd:enumeration value=\"ApiEvent\"/>\n <xsd:enumeration value=\"AdminSetupEvent\"/>\n <xsd:enumeration value=\"LoginEvent\"/>\n <xsd:enumeration value=\"ListViewEvent\"/>\n <xsd:enumeration value=\"CredentialStuffingEventStore\"/>\n <xsd:enumeration value=\"ReportAnomalyEventStore\"/>\n <xsd:enumeration value=\"SessionHijackingEventStore\"/>\n <xsd:enumeration value=\"ApiAnomalyEventStore\"/>\n <xsd:enumeration value=\"BulkApiResultEventStore\"/>\n <xsd:enumeration value=\"PermissionSetEventStore\"/>\n <xsd:enumeration value=\"FileEventStore\"/>\n <xsd:enumeration value=\"GuestUserAnomalyEventStore\"/>\n <xsd:enumeration value=\"LoginAsEvent\"/>\n <xsd:enumeration value=\"LoginAnomalyEventStore\"/>\n <xsd:enumeration value=\"UniversalAnomalyEventStore\"/>\n </xsd:restriction>\n</xsd:simpleType>\n<xsd:complexType name=\"TransactionSecurityPolicy\">\n <xsd:complexContent>\n <xsd:extension base=\"ens:sObject\">\n <xsd:sequence>\n <xsd:element name=\"FullName\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"Metadata\" minOccurs=\"0\" type=\"mns:TransactionSecurityPolicy\" nillable=\"true\"/>\n </xsd:sequence>\n </xsd:extension>\n </xsd:complexContent>\n</xsd:complexType>\n\n\n<xsd:complexType name=\"TransactionSecurityPolicy\">\n <xsd:complexContent>\n <xsd:extension base=\"mns:Metadata\">\n <xsd:sequence>\n <xsd:element name=\"action\" type=\"mns:TransactionSecurityAction\"/>\n <xsd:element name=\"active\" type=\"xsd:boolean\"/>\n <xsd:element name=\"apexClass\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"blockMessage\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"customEmailContent\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"description\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"developerName\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"eventName\" minOccurs=\"0\" type=\"tns:TransactionSecurityEventName\"/>\n <xsd:element name=\"eventType\" minOccurs=\"0\" type=\"tns:MonitoredEvents\"/>\n <xsd:element name=\"executionUser\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"flow\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"masterLabel\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"resourceName\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"type\" minOccurs=\"0\" type=\"tns:TxnSecurityPolicyType\"/>\n </xsd:sequence>\n </xsd:extension>\n </xsd:complexContent>\n</xsd:complexType>\n<xsd:simpleType name=\"TxnSecurityPolicyType\">\n <xsd:restriction base=\"xsd:string\">\n <xsd:enumeration value=\"CustomApexPolicy\"/>\n <xsd:enumeration value=\"CustomConditionBuilderPolicy\"/>\n </xsd:restriction>\n</xsd:simpleType>\n```"
}