# /appLinks returns an empty array but user is assigned an application

**URL:** <https://devforum.okta.com/t/applinks-returns-an-empty-array-but-user-is-assigned-an-application/5394>\
**Category:** Questions\
**Created:** [June 13, 2019, 1:39am UTC](https://devforum.okta.com/t/applinks-returns-an-empty-array-but-user-is-assigned-an-application/5394 "2019-06-13T01:39:14Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mrflibble](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mrflibble](https://devforum.okta.com/u/mrflibble)\
**Post date:** [March 10, 2022, 2:05am UTC](https://devforum.okta.com/t/applinks-returns-an-empty-array-but-user-is-assigned-an-application/5394/6 "2022-03-10T02:05:14Z")

</div>

I too was wondering why appLinks returns empty, using an API token when attempting to retrieve a user’s linked apps.

The answer might be here:  
[https://support.okta.com/help/s/article/Why-do-results-vary-when-referencing-the-applinks-API-endpoint-from-a-Browser-or-from-a-different-medium?language=en\_US](https://support.okta.com/help/s/article/Why-do-results-vary-when-referencing-the-applinks-API-endpoint-from-a-Browser-or-from-a-different-medium?language=en_US)

> The Apps returned via /appLinks are the App Cards seen on the user’s dashboard. If a user is assigned to an application that has the _Login initiated by_ set to either _Okta_ or _App_ , and Application visibility is set to _Display application icon to users_ - it will appear.  
> Please note that the API call _/api/v1/users/{{UserID}}/appLinks_ , when performed through a token, will **not have access to the Personal Apps** set up and managed by the end user. Conversely, if the call is performed through the browser, by the user who has a session, it will have access to the **Personal Apps** set up by the end user, who are only visible for him.

The documentation at [Users | Okta Developer](https://developer.okta.com/docs/reference/api/users/#get-assigned-app-links) does not mention this restriction.

(related, closed, topic: [User API - appLinks returns 0 results](https://devforum.okta.com/t/user-api-applinks-returns-0-results/11328))

To see if a user is an assigned to an app:

```auto
/api/v1/apps/{$applicationId}/users/{$userId}

```

That will return an Application User if the user is assigned to the app. This requires you knowing the applicationId and the userId must be a user.id (not the user.login)

hope this helps someone!

---

_[View the full topic](https://devforum.okta.com/t/applinks-returns-an-empty-array-but-user-is-assigned-an-application/5394)._
