Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Claus Nielsen February 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
lpater
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 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
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 Leaders.
February 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 February 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
TAGS
AUG Leaders

Atlassian Community Events