Is there API / a service to get process operation permissions per role?
com.ibm.team.process.client.IProcessClient. getPermittedActions(IProcessArea processArea, java.lang.String operationId, java.lang.String[] actions, org.eclipse.core.runtime.IProgressMonitor monitor)
Accepted answer
1. The tool now shows the history of changes to the process XML (including Permissions) in the project/team area editor in the web UI.
2. This history can be accessed via a REST interface. https://jazz.net/wiki/bin/view/Main/ProjectAreaHistory. This interface should be considered a "provisional API", but it will get the job done.
4 other answers
Comments
Might not need that level of detail, e.g. permission inheritance rules and multiple roles and all that.
I just need the state of the "checkboxes" on each level, like it is available in the Process editor.
What I did for now was downloading the process XML and some manual parsing - but that's painful and limited.
So how does the process editor do it? There is a tree and a table view (if configured for a level), maybe I can steal some code from there?
Thanks for any hint & regards
Florian
Comments
unfortunately, this is not enough - I need a table with all available (advisable) operations.
I agree the 'Runtime Report' just shows the project/team areas and the roles a user has. We would like a similar display/print capability of roles both custom and default and their respective permissions for any given project/team area for audit purposes........
Carefully reading the answers by Jared tells you, that there is no such API. It appears, you have to get the process XML and read the data from there. The caveat is, that it refers to internal ID's for the Extension Points and Operation ID’s and it is also not trivial to work with the XML. However, Jareds statement is clear that we don't have a different API.
Florian mentions a method, but that does only work for the user that is logged into the repository.
Comments
pumtat boonyakarn
Nov 27 '15, 8:35 p.m.Have anyone find the solution for this questions ?