Forums

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

Rovo Says 50 Users Found. You Have 500. Here’s the Fix

If you asked Rovo “how many users in group jira-software-users” and got back 50, you hit the built-in limit. Rovo caps user search results at 50. It also samples Jira issues around 100 to 200.

That means reports are incomplete and random each run.

The fix: Use Forge for the counting, Rovo for the writing

Build a Forge Action called get-group-members-full. It calls the Admin API with pagination and returns the real count.
Your Rovo agent uses that Action first. Example prompt: First call get-group-members-full for group jira-software-users. Then write a summary of license risk.
Rovo never sees 50 items. It sees one number: 523. Then it writes.
Why this works
Forge runs as code. No 50 item limit. Rovo handles judgment and communication. You get deterministic data with human-readable output.

Gotcha
Your Forge app needs Org Admin consent to read all users. Without it, you’re back to 50. Get approval before you promise results.

If you’re stuck on the 50 user limit, reply with your use case. I’ll share the Forge code.

6 comments

Darryl Lee
Community Champion
June 26, 2026

Hey @HEMANT SAINI - This sounds like a solid approach. I'd love to see your code as I've not tried writing Forge Actions for Rovo.

I recently built some Forge Automation Actions that hit APIs to lookup groups of a user, grant Jira and Confluence permissions, etc.

Like # people like this
Jordi Romera
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 Champions.
June 28, 2026

Hello @HEMANT SAINI Could you please share how did you build this Forge action? It's amazing!

Like # people like this
HEMANT SAINI
Banned
July 6, 2026

Hey @Darryl Lee  and @Jordi Romera , appreciate the interest!
I put together this Forge Action to get around Rovo’s 50-user limit when checking Jira group sizes. Here it is:

manifest.yml

modules:
rovo:agent:
- key: group-counter-agent
name: Group Counter Agent
description: Gets full group member counts for Jira
prompt: >
First call get-group-members-full for the requested group.
Then write a summary of license risk.
actions:
- get-group-members-full
action:
- key: get-group-members-full
name: Get Full Group Members
description: Returns complete member count for a Jira group
function: resolver
inputs:
groupName:
title: Group Name
type: string
required: true
function:
- key: resolver
handler: index.handler
permissions:
scopes:
- read:group:jira
- read:user:jira
app:
id: ari:cloud:ecosystem::app/<your-app-id>


src/index.js

import Resolver from '@forge/resolver';
import api, { route } from '@forge/api';

const resolver = new Resolver();

resolver.define('get-group-members-full', async ({ payload }) => {
const { groupName } = payload;
let startAt = 0;
const maxResults = 50; // API max per page
let totalUsers = [];
let isLast = false;

// Paginate through all members
while (!isLast) {
const res = await api.asApp().requestJira(
route`/rest/api/3/group/member?groupname=${groupName}&startAt=${startAt}&maxResults=${maxResults}`
);
if (!res.ok) {
const body = await res.text();
throw new Error(`Failed to fetch group: ${res.status} ${body}`);
}
const data = await res.json();
totalUsers = totalUsers.concat(data.values);
startAt += data.values.length;
isLast = data.isLast;
}

return {
groupName,
count: totalUsers.length,
members: totalUsers.map(u => ({
accountId: u.accountId,
displayName: u.displayName,
email: u.emailAddress
}))
};
});

export const handler = resolver.getDefinitions();

You’ll need the scopes read:group:jira and read:user:jira.
Important note: Without Org Admin consent in your Atlassian org, it’ll only return partial results. Best to install it through an admin and get full approval.
Also, when using it with Rovo, make sure you explicitly tell the agent to call the action first — otherwise it tends to fall back to the default 50-user search.

Like Anwesha Pan likes this
Darryl Lee
Community Champion
July 6, 2026

Neat. Any chance you can publish your code on GIthub or Bitbucket? Also could you share a screenshot of the Agent in action so we can see how it works?

Like Anwesha Pan likes this
HEMANT SAINI
Banned
July 7, 2026

@Darryl Lee i work in restricted env so i cannot publicly publish code & other stuff. There are penalties involve.

Darryl Lee
Community Champion
July 7, 2026

Well @HEMANT SAINI you already did publicly share code in your previous post.

Did you know you can get a free Developer Instance here 

http://go.atlassian.com/about-cloud-dev-instance

If you have a personal laptop, then you should be able to create brand new Forge Rovo Agents there and share your code, unencumbered by your company restrictions.

But I digress.

Your code did not work. 1) it was incomplete, 2) 

If you are going to use AI to post to this forums, I recommend you use an AI that is more specifically tuned to Atlassian products, and then you must actually try the code that AI gives you. You cannot just post it here, untested.

For creating Forge apps, you could use Rovo Studio, as detailed here:

As it stands, if you cannot share your actual full source code or screenshots of your code working, we must assume that you are just asking generic AI for answers, and this actually wastes the time of people reading and responding to your posts.

Another example of you doing this is here:

I mean, even before we look at your code, your instructions are patently wrong:

Get your Org ID: Go to admin dot atlassian dot com, Settings, Details, copy your Organization ID. You will need it.

That is NOT where you find the Organization ID. How to find that is detailed here:

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events