i would like to know if there is an common api for fetching users of all Jira products , adding users, fetching billing related information, https://developer.atlassian.com/cloud/ ,I have checked this documentation I cant find specific resource to fetch users , add user and billing related information.
Hi @divya
Welcome to community! You can use the users api to fetch users and add users in your instance. However, regarding billing related information. Are there any specific information you're looking for?
is this "users" common to all JIRA products? and billing related information such as amount , plan name ,bill date, and other licensing related information(expiry ,renewal dates) is needed for fetching through api.
And the mentioned Api returns some unwanted information (different apps as users)along with the users list
{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=*******b9320d9ea5bdc2","accountId": "*******b9320d9ea5bdc2","displayName": "Jira Outlook","active": true},{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=*********52030f1e3a5905","accountId": "*******52030f1e3a5905","accountType": "app","displayName": "Jira Spreadsheets","active": true},{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=*******950f9f5b-3d6d-4e1d-954a-21367ae9ac75","accountId": "******e9ac75","accountType": "app","displayName": "Jira Service Management Widget","active": true},{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=*******:f58131cb-b67d-43c7-b30d-6b58d40bd077","accountId": "************3c7-b30d-6b58d40bd077","accountType": "app","displayName": "Automation for Jira","active": true},{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=**********b97ab11a18e00c7","accountId": "***************8e00c7","accountType": "app","displayName": "Halp","active": true},{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=*******:0867a421-a9ee-4659-801a-bc0ee4a4487e","accountId": "*******:0867a421-a9ee-4659-801a-bc0ee4a4487e","accountType": "app","displayName": "Slack","active": true},{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=*******:214cdd6a-ff93-4d8b-838b-62dfcf1a2a71","accountId": "*******:214cdd6a-ff93-4d8b-838b-62dfcf1a2a71","accountType": "app","displayName": "Trello","active": true},{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=************c0efbe55103","accountId": "************0efbe55103","accountType": "app","displayName": "Opsgenie Integration","active": true},{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=*************29c6c47967","accountId": "******************c68529c6c47967","accountType": "app","displayName": "Statuspage for Jira","active": true},{"self": "https://*******.atlassian.net/rest/api/3/user?accountId=60****************0682db95d","accountId": "6**************db95d","accountType": "atlassian","displayName": "yello","active": true},
Hi, you have to filter the result. Atlassian cloud has 4 different accountType namely:
Knowing the above, you should filter your output to get the desired result. For the information about billing, I'm not sure Atlassian has any public API for those but you can look into this Marketplace vendor API and see how that can help you.
while using the user api from my java code using url "https://*****.atlassian.net/rest/api/2/users/search?maxResults=100"
i get some users list but not complete list instead it suffixes the response with "...." like this,
response: self":"https://****a213.atlassian.net/rest/api/2/user?accountId=-45c7-8e5c-ac6635decc67","accountId":"-45c7-8e5c-ac6635decc67","accountType":"atlassian","16x16":"https://secure...."
how to get complete list of users
It looks like you're new here. Sign in or register to get started.