Hi,
I am trying to have users I create externally through Auth0 submit an action via their token. In particular I want to use the API call:
const palantirResponse = await fetch(`${palantirConfig.baseUrl}${palantirConfig.endpoints.documents}`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
parameters: {
user_uid: 'test-user',
company_uid: 'test-company',
document_name: req.file.originalname,
document_text: pdfData.text
},
options: {
returnEdits: "ALL"
}
})
});
where:
endpoints.documents is: /api/v2/ontologies/[ontology_id]/actions/create-v2document/apply
baseUrl is my Palantir URL
This works when I am logged in through my Palantir super-admin account but when I log in via another user that has the capability to submit an action I get that the action or ontology is “Not Found”. This is despite the fact that the user is part of a group which is in the submission criteria for the action.
I assume this has something to do with being able to view ontologies and objects but I am unsure how to enable viewing the ontology without allowing that user to then have access to the ontology which I don’t want