We have customer who has 100 servicdesk agents in their account, but when through our app we are making below call it’s returning more than 100 users. How’s that even possible ? Customer paid account is fore just 100 users , where are other users coming from I understand there are app users but still that many numbers? Can someone throw some light on below behavior ? What’s the expected behavior of the API ?
let search_url = `/rest/api/3/user/permission/search?projectKey=${projectKey}&permissions=SERVICEDESK_AGENT&maxResults=1000`;
let httpClient = addon.httpClient({clientKey:clientkey});
return new Promise(function (resolve, reject) {
httpClient.get(
{
url: search_url,
contentType: "application/json",
json: true,
},
(error, response, body) => {
resolve(body);
})
});