> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Or Update Risk

Set a user or resource risk level.
This sets a risk level for user-defined risk indicators for a user or resource.
These are used, along with Silverfort's indicators for the entity, to update the overall risk level for the entity.

## Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Resource Name       | The resource name of a resource defined in Active Directory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | Risks               | A set of risk indicators.<br />Each indicator contains a severity, description and for how long the indicator is valid for.<br /><br />For example:<br /><pre><code>\{<br />    "activity\_risk": \{<br />    "severity": "medium",<br />    "valid\_for": 1,<br />    "description": "Suspicious activity"<br />    },<br />    "malware\_risk": \{<br />    "severity": "high",<br />    "valid\_for": 1,<br />    "description": "Malware detected"<br />    }<br />  }</code></pre><br />The example above adds two indicators for the user, and assigns a risk level for each indicator. If<br />the indicator was used in an earlier request (same activity\_risk), the risk level is updated,<br />and a new indicator is not created. |
  | Search By           | Create or update risk based on user principal name or resource name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | User Principal Name | The user's principal name for whom risk indicators are to be created.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
</div>

## Example Output

```json theme={"dark"}
{
	"result": "updated successfully"
}
```

## Workflow Library Example

[Create or Update Risk with Silverfort and Send Results Via Email](https://library.blinkops.com/workflows/create-or-update-risk-with-silverfort-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-or-update-risk-with-silverfort-and-send-results-via-email/canvas" />
</div>
