I’m calling the /appLinks api (https://dev-XXXXXX.oktapreview.com/api/v1/users/{valid user id}/appLinks) and am getting an empty array back. I have assigned my test user to an application and can see that within both the user and in the application. Some experimentation has shown that I must have a valid user id and API token as if I change either of those I get an error.
Is there something else I should be looking at? I’m pretty new to the Okta world and easily could have missed something.
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.
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)