<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00009fs85zCAAOkta Classic EngineAPI Access ManagementAnswered2025-09-13T09:01:51.000Z2023-09-20T13:04:02.000Z2023-09-21T17:38:32.000Z

kh29n (kh29n) asked a question.

SPA OKTA APP - how to get list of users only assigned to this app.

Hey there!

 

I have a SPA OKTA app with signIn redirect model. So I have a Bearer token on FE.

How can I get the list of the users assigned to this app? using bearer token?

Is it possible to change shape of response. I mean for security purposes when the user get a list of users I want to see only names for example.

 

BR, Vladimir.


  • a0n5s (a0n5s)

    I thin you can get the list by Okta core API. Okta workflow is a good tools. it has template, you can search Okta and setup the connector, then you can call the api by the connector.

  • kh29n (kh29n)

    Thx for the answer.

    I know about okta core api and there are all needed endpoints which I need but the question is Can I get this list by okta core api with bearer token? and also how can I remove sencetive info from the response (users: [{ ...only name }])

  • andrea.skouras (Okta, Inc.)

    If the bearer token (which I take to be an Access Token your SPA received from Okta) was granted to an end user without admin permissions, it won't have permission to make this request. Only administrators (with the appropriate permissions) are able to make a request to list users assigned to application. In which case, your SPA might not be able to handle this request and you'd instead need a backend server to secure an API token (or similar) to facilitate this.

    Expand Post
This question is closed.
Loading
SPA OKTA APP - how to get list of users only assigned to this app.