# Document service and Document access

**URL:** <https://community.dynatrace.com/t/document-service-and-document-access/51752>\
**Category:** Developer Q&A Forum\
**Tags:** platform-services\
**Created:** [May 22, 2025, 8:41am UTC](https://community.dynatrace.com/t/document-service-and-document-access/51752 "2025-05-22T08:41:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [May 22, 2025, 8:41am UTC](https://community.dynatrace.com/t/document-service-and-document-access/51752/1 "2025-05-22T08:41:19Z")

</div>

Hello All!

Easy question, from below permissions:

-Grants permission to read documents of the document service document:documents:read

-Grants permission to read environment shares of the document service document:environment-shares:read

-Grants permission to read direct shares of the document service document:direct-shares:read

Does this means that these are 3 different kinds of entities and does “:documents:” mean my-documents and public documents?

KR Henk

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [May 22, 2025, 3:28pm UTC](https://community.dynatrace.com/t/document-service-and-document-access/51752/2 "2025-05-22T15:28:49Z")

</div>

Tested all options,

Looks like “document:documents:read” is to make it possible to read all your owned/to you assigned/public documents

The other two are more so you can create an environment share or direct share. (Little confusing if you ask me)-;

KR Henk

---

<div class="post-metadata">

**Author:** ![haris](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/haris/32/38293_2.png) [@haris](https://community.dynatrace.com/u/haris)\
**Post date:** [May 27, 2025, 10:45am UTC](https://community.dynatrace.com/t/document-service-and-document-access/51752/3 "2025-05-27T10:45:45Z")

</div>

Hi Henk,

the info that explains the concept regarding it (which makes permission more understandable in context of documents) is here:&nbsp;[Document service | Dynatrace Developer](https://developer.dynatrace.com/plan/platform-services/document-service/)

For the permissions:

### document:documents:read

Grants permission to read documents of the document service

### document:environment-shares:read

Grants permission to read environment shares of the document service

### document:direct-shares:read

Grants permission to read direct shares of the document service

this basically translates into 3 tier permissions, which reflect this concept here:

### Sharing documents[​](https://developer.dynatrace.com/plan/platform-services/document-service/#sharing-documents)

Users can share the document with other users. The document owner can grant either&nbsp; **read-only** &nbsp;or&nbsp; **read-write** &nbsp;access to the document for other users. Document service also prevents accidental overwriting due to collaboration using&nbsp;[optimistic locking](https://developer.dynatrace.com/plan/platform-services/locking-strategies/)

There are three ways a user can share documents:

- **Public** : A document’s owner can grant read-only access to the document to all users of the same environment.
- **Environment** : A document’s owner can grant access to the document to all users of the same environment. Each user must opt in individually.
- **Direct** : A document’s owner can grant specific users or groups access to a document.

So to summarize,

document:documents:read is for the public documents, and the other two are for environment and direct shared documents as you mentioned yourself above.

What is the biggest confusion, or what would resolve the confusion for you?

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [May 27, 2025, 11:25am UTC](https://community.dynatrace.com/t/document-service-and-document-access/51752/4 "2025-05-27T11:25:55Z")

</div>

Hallo Haris,

Thanks for your reply!

I have tested above, but it seems that the documentation seems incorrect.

### document:environment-shares

Grants permission to read environment shares of the document service =\> looks more like the privilege to create an environment share, and to list your create environment shares

### document:direct-shares

Grants permission to read direct shares of the document service =\> Seems more that this is about the privilege to be able to create a share or list your shared shares

Without:

### document:documents:read

There are absolute no documents you can see,

KR Henk

As always, I could be wrong&nbsp; (-;

---

<div class="post-metadata">

**Author:** ![haris](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/haris/32/38293_2.png) [@haris](https://community.dynatrace.com/u/haris)\
**Post date:** [June 4, 2025, 3:19pm UTC](https://community.dynatrace.com/t/document-service-and-document-access/51752/5 "2025-06-04T15:19:30Z")

</div>

Thank you Henk, I’ve forwarded your feedback to our team.

---

<div class="post-metadata">

**Author:** ![haris](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/haris/32/38293_2.png) [@haris](https://community.dynatrace.com/u/haris)\
**Post date:** [June 6, 2025, 10:18pm UTC](https://community.dynatrace.com/t/document-service-and-document-access/51752/6 "2025-06-06T22:18:36Z")

</div>

Hi Henk, I’ve had a chat with our team, and here’s some information regarding what we’ve discussed above:

> So to summarize,  
> `document:documents:read`&nbsp;is for the public documents, and the other two are for environment and direct shared documents as you mentioned yourself above.

This is incorrect. This permission is for reading documents, regardless of whether they’re owned by you, shared with you, or public. This is the basic requirement to access any document.

> **document:environment-shares**  
> Grants permission to read environment shares of the document service =\> looks more like the privilege to create an environment share, and to list your create environment shares  
> **document:direct-shares**  
> Grants permission to read direct shares of the document service =\> Seems more that this is about the privilege to be able to create a share or list your shared shares

This is also incorrect -&nbsp;`document:environment-shares`&nbsp;is not a permission, it’s the target of a permission. It’s only a permission when you add a verb at the end - e.g.&nbsp;`:read`&nbsp;or&nbsp;`:write`&nbsp;.So, the correct info is:

- you need&nbsp;`document:documents:read`&nbsp;to access documents in general. with this, you’ll be able to see your own documents, public documents, and documents that other people have shared with you
- you need&nbsp;`document:environment-shares:claim`&nbsp;to consume link-shares
- you need all the&nbsp;`document:environment-shares:...`&nbsp;and&nbsp;`document:direct-shares:...`&nbsp;permissions to create and maintain shares of documents you own

All this information can not be found in the devportal, but can be found on the swagger UI or in the generated SDK’s documentation.

Hope it helps, if not, let me know if I can do anything else on this matter.  
Best, Haris

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 7, 2025, 5:39am UTC](https://community.dynatrace.com/t/document-service-and-document-access/51752/7 "2025-06-07T05:39:20Z")

</div>

Hello Haris,

Thanks for going the extra mile (-; Great explanation thanks!

KR Henk
