Is it possible to get only the artifact links, if you do not have the permission to see the linked source via RM-API?
I dry to get all satisfies-link of an ERM-artifact via
RM.Data.getLinkedArtifacts(art.artRef, [], function(linksResult){
if (linksResult.code != RM.OperationResult.OPERATION_OK){
return
}
// internal links are stored in linksResult.data.artifactLinks[0].linktype
if (linksResult.data.artifactLinks.length>0){
let linkList=[]
linksResult.data.artifactLinks.forEach(function(linkDefinition){
art["ERM link"] = getNameOfLinkType(linkDefinition.linktype.uri, linkList)
})
}
else{
art["ERM link"] ="noLinkSet"
}
}
But if the user have not the permission to see the linked resource the result is empty.
On the list of artifact links located on the requirement you can see, that there are satisfies-link with the number.
So I want to get the information, that one link with the link type satisfies exists, in my code. How can I handle this?
|
Be the first one to answer this question!
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
I am not the best person to answer this, but I would like to comment, that the API should not be able to override any permissions. I think links were the user does not have access to both ends should not be visible to the user. Otherwise you could leak confidential information such as customer names in link labels that you should not be able to see.
So the only way to handle this, would be to use a user with enough permissions. I do know if the JavaScript API alowes to elevate the user, but I really doubt it. This would be a vulnerability.