# Scopes for reading user data

**URL:** <https://community.developer.atlassian.com/t/scopes-for-reading-user-data/78166>\
**Category:** Forge\
**Tags:** scopes, confluence-cloud\
**Created:** [March 11, 2024, 8:32am UTC](https://community.developer.atlassian.com/t/scopes-for-reading-user-data/78166 "2024-03-11T08:32:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![berlund](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@berlund](https://community.developer.atlassian.com/u/berlund)\
**Post date:** [March 11, 2024, 8:32am UTC](https://community.developer.atlassian.com/t/scopes-for-reading-user-data/78166/1 "2024-03-11T08:32:52Z")

</div>

Hi!

I’m trying to read user data in a Forge plugin using the fetch API:

```javascript
api.asApp().requestConfluence(route`wiki/rest/api/user?accountId=abc`)

```

According to the documentation, I added this permission scope to my app:

```auto
permissions:
  scopes:
    - 'read:confluence-user'

```

However, the API call gives a 401, _Unauthorized; scope does not match_. Running `forge lint -fix` doesn’t add any permissions at all to my manifest. Is it even possible to fetch user details from an app context and what permissions are required in that case?

Thanks!

---

<div class="post-metadata">

**Author:** ![berlund](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@berlund](https://community.developer.atlassian.com/u/berlund)\
**Post date:** [March 11, 2024, 9:31am UTC](https://community.developer.atlassian.com/t/scopes-for-reading-user-data/78166/2 "2024-03-11T09:31:45Z")

</div>

For the permission, I found that only restarting the tunnel did not help, upgrading the installation of the app was also needed.

But the fact that `forge lint --fix` doesn’t recognize the required scope (given that the manifest does not contain any) remains.
