It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Fisheye/Crucible: Is it possible to see if a user is admin via the REST API

Claus Nielsen Feb 17, 2016

Hi,

Is it possible to use the REST api to see if a user is registred as admin in Fisheye/Crucible ?

This one doesn't show: rest-service-fecru/admin/users/<user>

{
    "name": "&lt;user&gt;",
    "displayName": "&lt;name&gt;",
    "email": "&lt;email&gt;",
    "type": "LDAP",
    "crucible": true
}

2 answers

1 accepted

1 vote
Answer accepted
Lukasz Pater Atlassian Team Feb 22, 2016

Hi Claus,

This is not available currently in the REST api. There's a feature request for this in our issue tracker. Please watch that for updates.

0 votes
Gustavo Refosco Feb 18, 2016

Hi Claus,

The REST API in fact doesn't show if the user is admin or not, but you should be able to retrieve this information directly from your config.xml file under the FISHEYE_INST directory. When a user is set as administrator, it's added to a list within this file, shown as follows:

&lt;admins&gt;&lt;system-admins&gt;&lt;user&gt;grefosco&lt;/user&gt;&lt;/system-admins&gt;&lt;/admins&gt;

Regards,

Gustavo Refosco

Claus Nielsen Feb 18, 2016

Thanks Gustavo,

I know that this info is present in the config.xml file on our linux box, which we can't fetch programmatically....

It would be nice to have this feature via the REST API - of course only information available via the API to admin roles smile

Kind regards

Claus Nielsen

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

921 views 12 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you