I created an app using jira cloud (atlassian-connect.json). With the help of this tutorial I created app and installed.
So it’s restricted to one user. I want to build a plugin in organization level.
For eg in my organization have 10 people. All will install my app. If any user created any record(Submit form in my app) all other members in that company have to see that infomration.
How can I achieve this feature in cloud.
I want to get installed user organization details and members in each organization, projects and issues/tasks in it.
Apps are installed per instance, not per user. So your app only needs to be installed once. After that everybody on your instance should be able to use it. Simply display your data in a web panel or in a custom page and it should be visible for everyone.
In your payload, url can be relative so it looks like /rest/api/latest/user/search?query= and the API resolves it for you. And it’s /user and not /users. I don’t think you need the extra headers.
Please note that the AP.request`calls the endpoint on behalf of the user and not the app which means that the logged in user should have the right access and permission