# Enable/Disable my plugin in some Confluence Spaces

**URL:** <https://community.developer.atlassian.com/t/enable-disable-my-plugin-in-some-confluence-spaces/58371>\
**Category:** Confluence Cloud\
**Tags:** conditions\
**Created:** [May 17, 2022, 3:08pm UTC](https://community.developer.atlassian.com/t/enable-disable-my-plugin-in-some-confluence-spaces/58371 "2022-05-17T15:08:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlosSnchezPrieto](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@CarlosSnchezPrieto](https://community.developer.atlassian.com/u/CarlosSnchezPrieto)\
**Post date:** [May 17, 2022, 3:08pm UTC](https://community.developer.atlassian.com/t/enable-disable-my-plugin-in-some-confluence-spaces/58371/1 "2022-05-17T15:08:03Z")

</div>

Hi there, Carlos here!  
I am trying to make my plugin enable/disable for some spaces in confluence, but I am really lost looking information about that. Its more, I really don’t know if it can be done hehe.

I´m thinking in make a Api call to obtain all spaces (GET /wiki/rest/api/space) in actual confluence cloud instance but then how can I make my pugin only available in some of them? Dont know if there is a property or a module to add this restriction.

Any help is welcome!  
Thanks!

---

<div class="post-metadata">

**Author:** ![james.dellow](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/james.dellow/32/35848_2.png) [@james.dellow](https://community.developer.atlassian.com/u/james.dellow)\
**Post date:** [May 17, 2022, 10:48pm UTC](https://community.developer.atlassian.com/t/enable-disable-my-plugin-in-some-confluence-spaces/58371/2 "2022-05-17T22:48:42Z")

</div>

Have you looked at conditions? [Connect conditions](https://developer.atlassian.com/cloud/confluence/connect-conditions/)

---

<div class="post-metadata">

**Author:** ![CarlosSnchezPrieto](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@CarlosSnchezPrieto](https://community.developer.atlassian.com/u/CarlosSnchezPrieto)\
**Post date:** [May 25, 2022, 3:39pm UTC](https://community.developer.atlassian.com/t/enable-disable-my-plugin-in-some-confluence-spaces/58371/3 "2022-05-25T15:39:09Z")

</div>

hi there @james.dellow , thank you for your quick answer , don’t know why i dindt received an email or notification to know you have answered me.

Whit connect conditions I have to put the spaces directly in the atlassian-connect.json, I am looking how to do the same but selecting the spaces you want to make the plugin disabled, on my plugin configuration menu at the settings side bar of confluence. I mean , to make possible to one confluence admin to make my plugin enable/disable from same spaces.

Best regards, and thanks again for your answer!

---

<div class="post-metadata">

**Author:** ![ademoss](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ademoss/32/35858_2.png) [@ademoss](https://community.developer.atlassian.com/u/ademoss)\
**Post date:** [May 25, 2022, 3:41pm UTC](https://community.developer.atlassian.com/t/enable-disable-my-plugin-in-some-confluence-spaces/58371/4 "2022-05-25T15:41:28Z")

</div>

@CarlosSnchezPrieto - You create a space-level entity property for your app, and then use the conditions to check against the existence/value of that property. Thus, the condition doesn’t need to hardcode a particular space, but always checks the same property in every space.

Then, somewhere within your app (config screen most likely), you can give a user the ability to disable the plugin for a particular space, which behind the scenes, simply sets the value of that entity property.

---

<div class="post-metadata">

**Author:** ![CarlosSnchezPrieto](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@CarlosSnchezPrieto](https://community.developer.atlassian.com/u/CarlosSnchezPrieto)\
**Post date:** [May 27, 2022, 8:28am UTC](https://community.developer.atlassian.com/t/enable-disable-my-plugin-in-some-confluence-spaces/58371/5 "2022-05-27T08:28:07Z")

</div>

Thank you very much for your help, I will try as you said. 🙂
