How-to fetch the list of admin users in Fisheye/Crucible

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

  

Summary

Comparing to other Atlassian products Fisheye and Crucible doesn't have administrator group set up via the user management. In order to fetch users with admin permissions you need use the approach described below.

Environment

Any supported version of Fisheye or Crucible.



Solution

Since Fisheye and Crucible have the admin privileges configured via config.xml, you can fetch the users and groups from there.

  1. Open $FISHEYE_HOME/config.xml
  2. Find the following tags: 
    <admins><system-admins></system-admins></admins>
  3. You can get the users directly, they are mentioned between tags
    <user></user>
  4. For the user who have admin permissions via the group membership you can do the following:
    1. Take the list of groups from config.xml, between the tags:
      <group></group>
    2. Execute REST API call to the endpoint for each group:
      /rest-service-fecru/admin/groups/{name}/users
    3. In the REST query above replace "name" for each group with the names you got from a previous step to get the user list.



Last modified on Feb 17, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.