TheHive
TheHive copied to clipboard
[Bug] Link to a case does not work if someone's context is on a different organization
Request Type
Question
Question
I have cases created in different organizations. The link to a case does not work if the person accessing the link is not manually switching to the organization of that specific case beforehand. Is there any parameter that can be used in a GET request to specify the organization also ?
Eg. I am authenticated and have my context switched to Organization A. Someone creates a case in Organization B , to which I also have access, and shares me the link to the case. If I just click the case link it won't show, because the case with specified ID is not in my current organization's context. If I manually switch the organization in top right and access the link after, it works .
Currently you can do it when using APIs (cf. below) but the front-end cannot switch automatically to an org.
You can set auth.organisationParameter
in application.conf. For example:
auth.organisationParameter=thehive-organisation
Then add this parameter in the GET request: `http://thehive/api/v1/case/$caseId?thehive-organisation=orgA