{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":1019,"path":"api-reference/server-api-reference/c_GlidePluginManagerScopedAPI.md","title":"GlidePluginManager - Scoped","bundle":null,"doc_type":null,"release":"australia","body":"\n# GlidePluginManager- Scoped\n\nThe scoped GlidePluginManager API provides a method for determining if a plugin has been activated.\n\n**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)\n\n## GlidePluginManager - isActive\\(String pluginID\\)\n\nDetermines if the specified plugin has been activated.\n\n|Name|Type|Description|\n|----|----|-----------|\n|pluginID|String|Unique plugin identifier.|\n\n<table id=\"table_wrc_dwv_ht\" class=\"returns\"><thead><tr><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates if the plugin is active.\n\n Valid values:\n\n-   true: Plugin is active.\n-   false: Plugin is inactive.\n\n</td></tr></tbody>\n</table>```\nvar now_GR = new GlideRecord('sys_plugins');\nvar queryString = \"active=0^ORactive=1\";\nnow_GR.addEncodedQuery(queryString);\nnow_GR.query();\nvar pMgr = new GlidePluginManager();\n \nwhile (now_GR.next()) {\n   var name = now_GR.getValue('name');\n   var pID = now_GR.getValue('source');\n   var isActive = pMgr.isActive(pID);\n   if (isActive) \n       gs.info('The plugin ' + name + ' is active');\n}\n```\n\nOutput:\n\n```\nThe plugin Country Lookup Data is active\nThe plugin Database Replication is active\nThe plugin REST API Provider is active\nThe plugin Ten Cool Things is active\n```\n\n"}}