Use the Create rule operation to create a new recomemendation rule.
Note
For the purpose of creating a recommendation rule, the following fields should be set as follows:
- Credentials to connect with: The
Client IDandClient Secretof any application in your tenant. Retrieve the credentials from any application in your tenant (available in the application settings). These credentials are not scoped to a specific app—they grant access to the entire tenant. Once saved, the credentials are stored as aMosaic accountand can be updated at any time. - Resource:
Identity Verification - Operation:
Get sessions
- Name: Defines the name of the recommendation rule. Must be unique across the tenant. Autogenerated if not provided.
- Priority: Sets the priority of the recommendation rule, which determines the order in which rules are evaluated. Rules are evaluated from smallest to biggest priority value and only the first rule to match will apply. Values range 1-100. Priority value must be unique.
- Recommendation: Defines which recommendation generated when the rule is matched(
challenge,deny,trust, orallow). - Enabled: Defines whether or not the rule will be evaluated. Default is
false. - Mode: Defines the scope of the rule. Values are:
preview: Allows you to simulate a rule and evaluate its impact before releasing it to production. The simulation occurs each time a recommendation is requested. If the preview rule matches the request (meaning, its priority is higher than all matching rules), the response will include this preview rule and what the recommendation would have been if all rules were in production.in production: The rule applies each time a recommendation is requested concurs to modify recommendation data in production.
- Type: Defines the rule type. Must be
risk. required - Description: ALlows you to enter a description for the rule.
- Matchers: Defines the set of conditions that define the rule logic. Matchers are:
ASN ID; Matches based on the ASN detected using the IP addressApplication ID; Matches based on app IDAction type; Matches based on the client action for which the recommendation is requestedBrowser names; Matches based on browser nameClient ID; Matches based on client IDCountry codes; Matches based on the country in which the device is locatedDevice fingerprints; Matches based on device fingerprintDevice IDs; Matches based on the device IDDevice platform; Matches based on device type, as classified by Transmit (e.g., desktop, mobile, wearable)Device public keys; Matches based on device public keyDevice timezone; Matches based on the timezone detected by Transmit using device telemetryIP CIDRs; Matches based on IP addressIP timezone; Matches based on the timezone detected by Transmit using IP addressLocation; Matches based on the place in the application in which the action was performed (such as page URL)Operating system versions; Matches based on the device OS versionOrganization name; Matches based on the organization name associated with the IP addressOrganization type; Matches based on the organization type associated with the IP addressUser agent; Matches based on user agentUser IDs; Matches based on user identifier
As the Transmit node is run, the rule is created. The node displays the following metadata:
rule_id: ID of the recommendation rule, used to reference the ruledata: A summary of the metadata set for the recommendation rule (see parameters above)