and getting back a correct response showing I have a read share. However, when another user logs in to see the document, its meta data shows he can also write and delete.
Shouldn’t the current user access permissions (listed in the metadata) reflect the current user permissions? Could it be that because this user is an admin he is not limited?
If a user can delete a document, it means that the user must be the owner since only owners can delete documents. Is it possible that you have logged in with the same user?
I have tried to reproduce the issue with the latest SDK versions of the client-document SDK (1.5.1).
I’ve figured out why I see this data and it’s a completely different Issue I’m trying to understand the reason for.
The Grail Document is created using the documentclient create document hook. I’m currently running this NOT as a deployed app, but as an npm start application on my local dev environment. ALL of mydocuments, regardless of the saas tenant user i’ve used are created by the same user guid.
That being the case its obvious I see the documents on all places…
It should work in the same way as in a deployed app. The documents are created with the authenticated user’s ID; I’ve tried it and can confirm that this works as expected.
I don’t see an obvious reason why this might be happening. Can you please try something? Create a new notebook with each user you’ve created documents with. Every notebook creates a document under the hood, then you can list the user documents, and check if the notebook’s document owner is the same as the documents you’ve created in your app. Maybe we can draw some conclusions from it.
yes this is the way how it should work when you develop it locally. once you start with the dynatrace app toolkit the local dev server, you are required to authenticate to the environment which you have specified in the app configuration file. The local dev server acts then as a proxy to all requests from your app to dynatrace - so you are not doing any requests directly.
when you then open in incognito mode a browser and access the local app, you requests will be still made as the user who started the dev-served and logged in.