# Multi-org plugin provisioning (synthetic monitoring on oss)

**URL:** <https://community.grafana.com/t/multi-org-plugin-provisioning-synthetic-monitoring-on-oss/92201>\
**Category:** Configuration\
**Tags:** provisioning, plugins\
**Created:** [July 25, 2023, 12:11pm UTC](https://community.grafana.com/t/multi-org-plugin-provisioning-synthetic-monitoring-on-oss/92201 "2023-07-25T12:11:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertsalong](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@robertsalong](https://community.grafana.com/u/robertsalong)\
**Post date:** [July 25, 2023, 12:11pm UTC](https://community.grafana.com/t/multi-org-plugin-provisioning-synthetic-monitoring-on-oss/92201/1 "2023-07-25T12:11:30Z")

</div>

- What Grafana version and what operating system are you using?  
grafana oss in kubernetes - 8.5.13

- **What** are you trying to achieve?  
Provision plugin configurations for all orgs

- **How** are you trying to achieve it?  
Created configmap with plugin configurations (for synthetic monitoring

- What happened?  
Plugin settings get provisioned only for org 1 (default org)

- What did you **expect** to happen?  
For provisioning to apply to all orgs

- Can you copy/paste the configuration(s) that you are having problems with?

```auto
apiVersion: 1
apps:
- type: grafana-synthetic-monitoring-app
  name: grafana-synthetic-monitoring-app
  orgId: 1
  disabled: false
  jsonData:
    apiHost: <host_url>
    stackId: <stack>
    logs:
      grafanaName: <ds_name>
      hostedId: <ds_id>
    metrics:
      grafanaName: <ds_name>
      hostedId: <ds_id>
  secureJsonData:
    publisherToken: <token>
- type: grafana-synthetic-monitoring-app
  name: grafana-synthetic-monitoring-app
  orgId: 2
  disabled: false
  jsonData:
    apiHost: <host_url>
    stackId: <stack>
    logs:
      grafanaName: <ds_name>
      hostedId: <ds_id>
    metrics:
      grafanaName: <ds_name>
      hostedId: <ds_id>
  secureJsonData:
    publisherToken: <token>
  secureJsonData:
    publisherToken: <token>
- type: grafana-synthetic-monitoring-app
  name: grafana-synthetic-monitoring-app
  orgId: 3
  disabled: false
  jsonData:
    apiHost: <host_url>
    stackId: <stack>
    logs:
      grafanaName: <ds_name>
      hostedId: <ds_id>
    metrics:
      grafanaName: <ds_name>
      hostedId: <ds_id>
  secureJsonData:
    publisherToken: <token>
ETC

```

- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us **exactly** what they were.  
No errors, no issues. Plugin provisioning works perfectly for org 1. Does not get provisioned for other orgs.

```auto
logger=provisioning.plugins t=2023-07-25T11:33:27.36+0000 lvl=info msg="Updating app from configuration " type=grafana-synthetic-monitoring-app enabled=true

```

Above happens as many times as there are orgs marked for provisioning

---

<div class="post-metadata">

**Author:** ![robertsalong](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@robertsalong](https://community.grafana.com/u/robertsalong)\
**Post date:** [July 25, 2023, 12:25pm UTC](https://community.grafana.com/t/multi-org-plugin-provisioning-synthetic-monitoring-on-oss/92201/2 "2023-07-25T12:25:16Z")

</div>

i gave figured it out.  
For datasources you would use **orgId** for plugin configurations you need to use **org\_id**  
🙂
