Why is JazzGuests repository permission not enough to run GET requests on Reportable REST API?
When we run a command such as the below from the Process REST API, it displays results with JazzGuests repository permission. https://jazz.ibm.com:9443/ccm/process/project-areas/_BHMXYN04EeqfiuFpzi3eFQ/roles
Conditions:
https://jazz.ibm.com:9443/ccm/rpt/repository/foundation?fields=projectArea/projectArea/roles/name
https://jazz.ibm.com:9443/ccm/rpt/repository/workitem?fields=workitem/workItem/itemHistory/(id|modified|(state/name)|(modifiedBy/(uniqueId|userId)))
Error 500: CRRED8021E: Internal Repository Error Caused by: [User "al" does not have the required permission to perform this operation. The "JazzUsers" repository permission is required to perform this operation.] Our understanding is that JazzGuests have read-only access to the repository and we are only performing REST GET operations here, so we are wondering why the JazzUsers repository permission is required.
Could someone enlighten us?
|
3 answers
Geoffrey Clemm (30.1k●3●30●35)
| answered Aug 28 '20, 11:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I don't have an authoritative answer to this question, but I expect that at least part of the answer is that running these queries against the applications can produce significant load on those applications, and you don't want unlicensed "guests" to be producing that load. For example, all jazz.net users are given JazzGuest repository permission, but we don't want those tens of thousands of jazz.net guest users to be loading up the development applications with those queries. |
Hi Ian,
You are right that, JazzGuest repository role only gives you read-only access to data. I suggest checking if user 'al' is added to the project as a member. Just check if 'al' is added on the project not a team level.
Comments
Ian Wark
commented Aug 27 '20, 8:24 p.m.
That doesn't answer the question of Why? In the above we are only performing read-only operations. As I note above, user 'al' is added to one project as a member. Although there are other CCM project areas in the repository. But I don't think adding him to every project area in the repository is the solution. We are thinking that JazzGuests should be able to perform these GET operations. If this is working as designed, please explain why.
|
The reason why you can't run the Repository REST API with JazzGuests is the API tries to generate and save information when you make a call.
It seems to be related to the com.ibm.rational.dataservices.framework.impl.ResourceProxyXMLGenerator class. The save requires JazzUsers repository permission. If the implementation is altered to not require save, JazzGuests should be able to run the Repository REST API. (This is why you can run the Process REST API with JazzGuests.)
I created this RFE.
Allow JazzGuests to run GET on Repository REST API
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=145080
Since JazzGuests has not been documented clearly, I also raised a documentary work item.
Please document JazzGuests repository permission
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Did you try with an appropriate license allocated to the user?
The point of JazzGuests (I understand) is that you do not wish to assign a license. The other repository roles provide some write permissions that require a license.