# Read Plugin Settings in Snippet

**URL:** <https://developer.sailpoint.com/discuss/t/read-plugin-settings-in-snippet/96299>\
**Category:** IIQ Discussion and Questions\
**Tags:** plugins, identityiq\
**Created:** [January 9, 2025, 8:23am UTC](https://developer.sailpoint.com/discuss/t/read-plugin-settings-in-snippet/96299 "2025-01-09T08:23:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahima](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mahima](https://developer.sailpoint.com/discuss/u/mahima)\
**Post date:** [January 9, 2025, 8:23am UTC](https://developer.sailpoint.com/discuss/t/read-plugin-settings-in-snippet/96299/1 "2025-01-09T08:23:15Z")

</div>

## Which IIQ version are you inquiring about?

_[8.3]_

Hi

I have created a plugin that displays a message on an existing page in IIQ based on the value in Plugin Configuration using a snippet. I have two files mainly for this update:

1. manifest.xml : Added the below setting

```auto
      <entry key="settings">
       <value>
         <List>
           <Setting dataType="int" helpText="The maximum number of objects to search. If there are 1000s or more objects of the type to search, the server could get overloaded" label="Max Objects to Search" name="maxSearchObjectCount" defaultValue="200"/>
         </List>
       </value>
    </entry>

```

1. snippet.js

Question: 1. How can I read the value of “maxSearchObjectCount” in snippet.js?  
2. If the value of “maxSearchObjectCount” is updated in plugin configuration, would snippet.js be able to read the updated value automatically or the value would be cached and a server restart would be needed?

Thank you!

---

<div class="post-metadata">

**Author:** ![Shandeep](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shandeep/32/7227_2.png) [@Shandeep](https://developer.sailpoint.com/discuss/u/Shandeep)\
**Post date:** [January 17, 2025, 6:13am UTC](https://developer.sailpoint.com/discuss/t/read-plugin-settings-in-snippet/96299/2 "2025-01-17T06:13:59Z")

</div>

Hi @mahima,

I assume `snippet.js` is the JS you are injecting in the UI, And you are trying the access the settings & values from the plugin settings page in the JS.

Unfortunately you cannot do this directly, The plugin settings and their values are not exported to the UI layer.

You have to write a Java class that exposes your setting as API. And, you have to make an API call to the backend and retrieve your settings.

If you are looking for references I would recommend you to check-out one of my Plugin - [IdentityIQ Announcement Plugin](https://developer.sailpoint.com/discuss/t/identityiq-announcement-plugin/23975)

---

<div class="post-metadata">

**Author:** ![mahima](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mahima](https://developer.sailpoint.com/discuss/u/mahima)\
**Post date:** [February 10, 2025, 7:42pm UTC](https://developer.sailpoint.com/discuss/t/read-plugin-settings-in-snippet/96299/3 "2025-02-10T19:42:27Z")

</div>

Thank you Shandeep! The reference helped.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [April 11, 2025, 7:42pm UTC](https://developer.sailpoint.com/discuss/t/read-plugin-settings-in-snippet/96299/4 "2025-04-11T19:42:49Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
