Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a organization id based on logged in user

Vikram Cirigiri
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 24, 2021

Hello,

We are developing a Jira App on Strategy Management. The requirement is that, based on the user who has installed the app into their account, we need to know the organization id, which will be used to tie up the whole application.

Steps are as follows:

- User installs the Jira App (Core Strategy)

- Saves his organization details

- Sets org structure, team structure

- Create Goals, Objectives for that organization etc.

 

I have seen the following:

curl --request GET \ --url 'https://api.atlassian.com/admin/v1/orgs' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'

 

But it requires an access_token for each organization, which I am not sure can be either created/ accessed by our API. Please can you guide us with the above requirement. This is a very critical requirement for us to proceed with the product development on Jira platform.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events