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

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

  

要約

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.

環境

Any supported version of Fisheye or Crucible.



ソリューション

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.



最終更新日: 2023 年 2 月 17 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.