on
27 Jun 2025
12:39 PM
- edited on
30 Jun 2025
07:02 AM
by
MaciejNeumann
This process can be applied to all Platform Documents (Dashboards, Notebooks, Launchpads), and will allow said Document to have a new Owner, and optionally be made public so that all users in the Environment can view it.
Sometimes a Document is kept in private only access (which is default), and then the owner of the Document no longer has access (Left the company, changed roles, etc...). This blocks other users from accessing the Document, making modifications, or changing its sharing settings. The Document's ownership can be transferred using the Document Service API.
The overall process is documented in our Developer Site. We need to use the transfer-owner API call with admin-access: true. As part of this, an OAuth2 Client will be made.
ALLOW document:documents:read, document:documents:write, document:documents:delete, document:documents:admin
curl -L -X POST 'https://sso.dynatrace.com/sso/oauth2/token' -H 'Content-Type: application/x-www-form-urlencoded' -d 'grant_type=client_credentials' -d 'client_id={Client-id}' -d 'client_secret={Client-secret}' -d 'resource={Dynatrace-account-urn}' -d 'scope=document:documents:read document:documents:admin document:documents:write'
curl -X 'GET' \
'https://{SaaS-Tenant-URL}/platform/document/v1/documents?admin-access=true' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {your-access-token}'
curl -X 'POST' \
'https://{SaaS-Tenant-URL}/platform/document/v1/documents/{id-of-document}:transfer-owner?admin-access=true' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {your-access-token}' \
-d '{
"newOwnerId": "{new-owner-id}"
}'
The ownership of the Document which was targeted should now be transferred to the new owner, at which point they can configure the sharing settings to make it public, or make modifications to the Document as if they had made it originally.
If this article did not help, please open a support ticket, mention that this article was used and provide the following in the ticket: