# Daemon Script Settings

**URL:** <https://community.shotgridsoftware.com/t/daemon-script-settings/17798>\
**Category:** Pipeline Integrations\
**Created:** [August 13, 2023, 6:32am UTC](https://community.shotgridsoftware.com/t/daemon-script-settings/17798 "2023-08-13T06:32:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PushpendraTiwari](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@PushpendraTiwari](https://community.shotgridsoftware.com/u/PushpendraTiwari)\
**Post date:** [August 13, 2023, 6:32am UTC](https://community.shotgridsoftware.com/t/daemon-script-settings/17798/1 "2023-08-13T06:32:09Z")

</div>

Hello Everyone,

Can we define which projects can be affected using a particular script? Mean to say, if we have a script “shotgunDaemonScript” using which daemons event running is configured, but I want to allow operations performed by the registered plugin to apply to only one project.

---

<div class="post-metadata">

**Author:** ![Halil](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/halil/32/4697_2.png) [@Halil](https://community.shotgridsoftware.com/u/Halil)\
**Post date:** [August 14, 2023, 5:18am UTC](https://community.shotgridsoftware.com/t/daemon-script-settings/17798/2 "2023-08-14T05:18:49Z")

</div>

Each plugin has a `process` method you need to define and here you can perform validations or check on the `event` record that it is passed for the associated project entity before any of the actual heavy lifting of the plugin runs. If you wanted you could call out to an external studio/project configuration file with a mapping between your plugins and projects that you want them to operate within and then continue processing the event our bail out and return early.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [August 17, 2023, 12:52am UTC](https://community.shotgridsoftware.com/t/daemon-script-settings/17798/4 "2023-08-17T00:52:26Z")

</div>

A slightly better way may be the following:

Create a Permission Group for your Script User and disable “See all Projects”

 ![image](https://global.discourse-cdn.com/shotgunsoftware/original/2X/0/0cac51fa16c4d99bed5c20cf8f1632e60ae467d7.png)

Then in the Script user there is a field called `Projects` similarly to how Users can be assigned to projects and only see those depending on permissions.

Your script can now only see and act on the projects it is assigned to.

- Before you do something destructive do test this with something non destructive, but it should work.

---

<div class="post-metadata">

**Author:** ![PushpendraTiwari](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@PushpendraTiwari](https://community.shotgridsoftware.com/u/PushpendraTiwari)\
**Post date:** [August 17, 2023, 1:17am UTC](https://community.shotgridsoftware.com/t/daemon-script-settings/17798/5 "2023-08-17T01:17:40Z")

</div>

Hey Ricardo,

Thank for this info… it helped me out a lot and now I can have a code testing dummy project and a script\_user bind to that particular project… 🤩
