Is there any API to find Access control details of projectarea?
Hi,
In RTC project area there is a element called "Access Control".
Which contains the accessing permission to a project area.
This is used to set the access permissions for the users in the project area.
These are the below optional fields are available.
Grant read access to:
Can anyone please help me on this?
2 answers
Hello,
These are the project level permissions and user can get errors like com.ibm.team.repository.common.PermissionDeniedException: CRJAZ1319E Read access
is not permitted. The user, bharat, tried to read one or more items that have the following type: WorkItem,baselineset,project area.
You can use PermissionAware API when retrieving the info from project area.
You can refer this link : https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/
Comments
Hi Bharath,
Thanks for your response. But the mentioned API is used to find workitem related information's.
As I mentioned in my query I am looking for the read access for the project area.
i.e. which field has been selected kind of information.
Please let me know if there are any API's to get these information's.
Finally I had found the solution for this.
Hope it might help someone.
If you have the project area instance then follow the below steps,.
ProjectAreaImpl projectAreaImpl = (ProjectAreaImpl) this.projectArea.getWorkingCopy();
projectAreaImpl.isInternalVisibleToAccessList();
projectAreaImpl.isInternalVisibleToMembers();
projectAreaImpl.isInternalPublic();
By using the above method calls you can easily fetch these access control information's.
Comments
ast java
May 06 '16, 12:38 a.m.Can anyone help me to get any workaround to fetch these details?