Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,459,201
Community Members
 
Community Events
176
Community Groups

How to get an agent list of a Service Desk via REST?

Hello people!!

 

With this endpoint we get a list of Service Desks:

https://your-domain.atlassian.net/rest/servicedeskapi/servicedesk

 

I wonder if there is a way to get the agents of each Service Desk.

Has anyone achived such requirement?

 

I went throught the documentation in the below link but I couldn't find a solution

https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-servicedesk/

 

Thanks in advance!

1 answer

0 votes
Florian Bonniec Community Leader Jan 24, 2023

Hi @Marcos Strapazon 

 

First you have to make sure to use the right rest api doc, if you are on server you have to use the server api not the cloud one.

You can go to the admin section > Application > Application Access then get the name of the group that grant agent permission. Then use the api to get the list of user of this group.

https://docs.atlassian.com/software/jira/docs/api/REST/9.6.0/#api/2/group-getUsersFromGroup

 

Regards

Hello @Florian Bonniec ! Thank you for your rapid answer!

in fact I don't need to the the aplication access but the users in a Service Desk (a project in the Service Managment Application).

I found a way to do so, first getting the Project's roles:

/rest/api/2/project/{projectIdOrKey}/role

and then, getting the information of each role:

/rest/api/2/project/{projectIdOrKey}/role/{id}

in this way I could retrieve the agents of a specific project because the response includes an array of users for that role.

Florian Bonniec Community Leader Jan 24, 2023

Right it's the way to go if you want to have the information per project. Note that actually Service Desk role do not grant any permission.

 

In fact all agents from a project are all users having the Service Desk Agent permission (permission scheme of the project) and have the application access to JIRA Service Desk (Management).

 

So if in all your permissions scheme, Service Desk Agent permission is granted to Service Desk Team only, your solution will work.

 

Regadrs

@Florian Bonniec thank you very much for your comments on this topic!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events