Part of a tool I'm creating requires getting a list of Fisheye repositories that each user has access to. It doesn't appear I can do this via the REST API. How can I retrieve this information? Where in the database or on the server is this information stored?
For example, I want to pass in a user name and retrieve a list of all the repositories that user can access in Fisheye.
I'm aware that there's no direct link between users and repos, but such a connection can be made through the groups the user belongs to and the groups allowed to access a repository.
So essentially I need to be able to:
1. Query groups a user is in
2. Query repos a group has access to
Community moderators have prevented the ability to post new answers.
Unfortunately the APIs do not cover this requirement entirely. In order to address this issue, I had to use both the API, and parsing of the config.xml.
1. I use the API function found here for getting the groups a user is in.
2. Parse the config.xml file found at /usr/fisheye_inst/config.xml to retrieve the repository information, including the repo name and the groups that have access to it.
With this information, I can tell which repositories a user has access to.
Hi Michael,
To query groups a user is in, you can use the following function in the FishEye API. Use the Lists user's group names to list the users group names
It is not possible to query repos a group has access to via the FishEye API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If it's not possilbe with the API, is there another way? For example is it stored in a file somewhere on the server? Or perhaps in the database? Thanks for your answer so far.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.