Hello.
I'm using 3LO apps against multiple sites in different organization. I need to retrieve organization Id with api? Is there any endpoint for that?
Best regards
Mike
Can you check this link and see if this helps esp. Section 3.0?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To get the cloud id you can use
GET call on https://your-domain.atlassian.net/_edge/tenant_info
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oh... okay.
To get Organization ID with REST API, we can use admin APIs.
Follow the below steps
Part A: Creating API Key for use with ADMIN APIs
Part B
Use GET -> https://api.atlassian.com/admin/v1/orgs to get org id
Headers
"Accept": "application/json"
"Authorization": "Bearer <access_token obtained in PART A Step 4>"
Does this work for you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
no, as I wrote I'm using 3LO apps, I can't ask my customers to give me their API Keys.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then post your question to https://community.developer.atlassian.com/.
You have a better chance of getting guidance over there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check this doc https://confluence.atlassian.com/cloudkb/retrieve-my-atlassian-cloud-organization-s-id-1207189876.html but Im afraid that if you are not org admin you won't be able to check it.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
as I mentioned I'm using 3LO apps, I cannot use the resource you sent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.