# Is it possible to apply document-level permissions to Google Drive synchronized documents?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-apply-document-level-permissions-to-google-drive-synchronized-documents/358922>\
**Category:** Elastic Search\
**Tags:** elastic-workplace-search\
**Created:** [May 7, 2024, 12:51pm UTC](https://discuss.elastic.co/t/is-it-possible-to-apply-document-level-permissions-to-google-drive-synchronized-documents/358922 "2024-05-07T12:51:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![m-amano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m-amano/32/62977_2.png) [@m-amano](https://discuss.elastic.co/u/m-amano)\
**Post date:** [May 7, 2024, 2:51pm UTC](https://discuss.elastic.co/t/is-it-possible-to-apply-document-level-permissions-to-google-drive-synchronized-documents/358922/3 "2024-05-07T14:51:03Z")

</div>

Hi.  
I have already done the API but it looks did not work. 😢  
The user can still get non-permitted documents as a search result.

The return from the API looks like it has no error though.

```auto
{"content_source_id":"<content-source-id>","external_user_id":"<the email of Google Drive>","external_user_properties":[{"attribute_name":"_elasticsearch_username","attribute_value":"<the Elasticsearch username>"}],"permissions":[]}

```

As you said the email of the Elasticsearch user and the email in Google Drive are the same.

---

_[View the full topic](https://discuss.elastic.co/t/is-it-possible-to-apply-document-level-permissions-to-google-drive-synchronized-documents/358922)._
