---
title: Run scripts on managed objects
description: Before implementing a script, it's highly recommended that you validate the script over REST. Use scripts in a test environment before deploying them to a production environment.
component: pingidm
version: 8.1
page_id: pingidm:objects-guide:managed-objects-scripts
canonical_url: https://docs.pingidentity.com/pingidm/8.1/objects-guide/managed-objects-scripts.html
keywords: ["Data Object Model", "Scripts"]
---

# Run scripts on managed objects

|   |                                                                                                                                                                                                                               |
| - | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | Before implementing a script, it's highly recommended that you [validate the script over REST](../scripting-guide/script-endpoint.html). Use scripts in a test environment before deploying them to a production environment. |

A number of *script hooks* let you manipulate managed objects using scripts. Scripts can be triggered during various stages of the lifecycle of the managed object, and are defined in the managed object schema.

You can trigger scripts when a managed object is created (onCreate), updated (onUpdate), retrieved (onRetrieve), deleted (onDelete), validated (onValidate), or stored in the repository (onStore). You can also trigger a script when a change to a managed object triggers an implicit synchronization operation (onSync).

Post-action scripts let you manipulate objects after they are created (postCreate), updated (postUpdate), and deleted (postDelete).

For more information, refer to:

* [Scripting guide](../scripting-guide/preface.html)

* [Script triggers defined in the managed object configuration *(tooltip: You can edit the managed object configuration over REST at the config/managed endpoint, or directly in the conf/managed.json file.)*](../scripting-guide/script-triggers-managedConfig.html)

* [Managed objects reference](appendix-managed-objects.html)
