# Permissions for apps

**URL:** <https://help.nextcloud.com/t/permissions-for-apps/2457>\
**Category:** ℹ️ Support\
**Tags:** feature\
**Created:** [August 19, 2016, 3:12pm UTC](https://help.nextcloud.com/t/permissions-for-apps/2457 "2016-08-19T15:12:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcit](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tcit/32/5931_2.png) [@tcit](https://help.nextcloud.com/u/tcit)\
**Post date:** [August 19, 2016, 3:12pm UTC](https://help.nextcloud.com/t/permissions-for-apps/2457/1 "2016-08-19T15:12:49Z")

</div>

It would be nice to have a detailed list of what an app can do to with your data, kind of what you can see when installing an Android app or what CozyCloud shows.

App developpers would have to register their app permissions inside the info.xml file. It would require the server to check on each OCP call if the app has the correct permissions. When a user installs an app, there’s a prompt to tell him what this app can do.

A few permissions I would think of right now :

- Can read/write your files
- Can access your calendars
- Can access your contacts
- Can send emails
- Can run background jobs
- …

Sorry if such an discussion already exists about this, didn’t found it.

---

<div class="post-metadata">

**Author:** ![nickvergessen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nickvergessen/32/66965_2.png) [@nickvergessen](https://help.nextcloud.com/u/nickvergessen)\
**Post date:** [August 19, 2016, 3:29pm UTC](https://help.nextcloud.com/t/permissions-for-apps/2457/2 "2016-08-19T15:29:19Z")

</div>

There is work towards this. But nothing completed yet

---

<div class="post-metadata">

**Author:** ![tcit](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tcit/32/5931_2.png) [@tcit](https://help.nextcloud.com/u/tcit)\
**Post date:** [August 19, 2016, 3:40pm UTC](https://help.nextcloud.com/t/permissions-for-apps/2457/3 "2016-08-19T15:40:27Z")

</div>

Is there some place to have a look ?

---

<div class="post-metadata">

**Author:** ![LEDfan](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ledfan/32/35_2.png) [@LEDfan](https://help.nextcloud.com/u/LEDfan)\
**Post date:** [August 20, 2016, 6:52am UTC](https://help.nextcloud.com/t/permissions-for-apps/2457/4 "2016-08-20T06:52:51Z")

</div>

I was just thinking, wouldn’t this implementation have some limits? Like you can’t use the OCP API, but you still can use PDO to fetch from the filecache table, or use fopen, file\_get\_contents to read from the filesystem?

There isn’t a way in PHP to block this, right?

---

<div class="post-metadata">

**Author:** ![nickvergessen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nickvergessen/32/66965_2.png) [@nickvergessen](https://help.nextcloud.com/u/nickvergessen)\
**Post date:** [August 20, 2016, 10:24am UTC](https://help.nextcloud.com/t/permissions-for-apps/2457/5 "2016-08-20T10:24:49Z")

</div>

> [@tcit](#):
>
> Is there some place to have a look ?

> <https://github.com/nextcloud/server/pull/719>
>
> This adds the option to configure app tokens to limit the permissions it provide…s.
> 
> Currently it only allows to deny filesystem access from a token. Restricting access to apps is possible already in the backend but neesd a ui.
> 
> Restricted app passwords reduce the risk that you take by giving a (3rdparty) client, you no longer need to give access to all your files to the cal/carddav sync app you use.
> 
> cc @ChristophWurst @LukasReschke

> [@LEDfan](#):
>
> I was just thinking, wouldn’t this implementation have some limits? Like you can’t use the OCP API, but you still can use PDO to fetch from the filecache table, or use fopen, file\_get\_contents to read from the filesystem?

Yes, well I think this a two different stories, the idea is not about Nextcloud (php) apps, but more about external apps (android, windows, …).  
E.g. you don’t want your calendar android app, to have a password that can read contacts and files as well. So the other apps and functionality is still loaded and so on, but the content and response would be different/restricted.

---

<div class="post-metadata">

**Author:** ![tcit](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tcit/32/5931_2.png) [@tcit](https://help.nextcloud.com/u/tcit)\
**Post date:** [August 22, 2016, 10:31am UTC](https://help.nextcloud.com/t/permissions-for-apps/2457/6 "2016-08-22T10:31:36Z")

</div>

> the idea is not about Nextcloud (php) apps, but more about external apps (android, windows, …).

That’s not really what I was thinking of then. Still, your thing is useful, but not what I expected.

---

<div class="post-metadata">

**Author:** ![nickvergessen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nickvergessen/32/66965_2.png) [@nickvergessen](https://help.nextcloud.com/u/nickvergessen)\
**Post date:** [August 23, 2016, 8:29am UTC](https://help.nextcloud.com/t/permissions-for-apps/2457/7 "2016-08-23T08:29:38Z")

</div>

Well splitting this on php level is …  
We can only do it on our APIs, but if an app uses the filesystem/database directly, there is nothing we an do about.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [November 6, 2024, 8:56pm UTC](https://help.nextcloud.com/t/permissions-for-apps/2457/8 "2024-11-06T20:56:34Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 3:35pm UTC](https://help.nextcloud.com/t/permissions-for-apps/2457/9 "2024-12-04T15:35:06Z")

</div>


