Forums

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

API call, returns fewer users than in the admin portal

Soltec PBI July 10, 2024

Good morning,

I'm making Rest API calls to Atlassian Cloud to get the number of users assigned by each Atlassian product. Even when making the calls using a loop that goes through all the cursors and makes the call for each cursor, the assignments to each user do not appear correctly. As an example, for the product "Compass" I see 5 users in the admin portal, but I only receive 4 users in the API call.

In addition, I don't see many of the products that do appear on the portal, such as Atlassian Guard, PowerBI Connector for Jira Cloud or ScriptRunner for Jira Cloud.

Is there something I'm not taking into account? Does it take some time for the API to synchronize with the portal?

The API call I am making is the following:

https://api.atlassian.com/admin/v1/orgs/{org_id}/users

Thanks in advance.

 

 

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2024

Hi @Soltec PBI 

Welcome to the community.

Only managed accounts will be retrieved via the API call.

Non managed accounts will not be shown in the results.

Atlassian Guard, is a product to manage users, so no accounts are in in this product, the api you are calling is from Atlassian Guard.

Apps are not taken into account, as they are based on the user tier of the product used in and are not taken into account, as access is determined on using an Atlassian product.

Soltec PBI July 10, 2024

Thanks for the quick reply.

How do you explain then that a user who has two licenses in the admin portal (one from Jira Service and another from Atlass) only appears in Jira Service in the API?

Is there a way to get the users for each of the products, including the ones I mentioned that don't appear? What would be the API call?

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2024

Hi @Soltec PBI 

No the user has access to Jira Service Management and if you use SSO you will require an Atlas (Guard) subscription.

But this wil not show in the API call, and there is no call for this.

If you would remove SSO, you won't need Atlas, so then there will be no license.

Or does this user have Trello and you claimed the domain, then you will see o user billed in Atlas, even if the user has no JSM access.

But Trello is not SSO enabled and can't be tracked via the API

Soltec PBI July 15, 2024

Hi, thanks for your comments.

Sorry but I wasn't understanding you.

As I have been able to verify, it only brings me the information of the Active users, but the guests do not appear in the API and do appear in the global count of Products in the admin portal.

I don't know if this is what you were trying to tell me and I wasn't able to understand you.

Is there an option to make the api call and see all these users?

Thanks in advance again.

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 18, 2024

iH @Soltec PBI 

To my knowledge, there is no option to get the guests (customers) via the API

You could create an Atlassian Support ticket to see if they can help out.

Suggest an answer

Log in or Sign up to answer