<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
0D54z0000A4evWeCQIOkta Classic EngineAPI Access ManagementAnswered2025-05-05T09:00:12.000Z2024-04-02T12:11:39.000Z2024-04-30T17:59:40.000Z

6qo9p (6qo9p) asked a question.

Fetch auth token to list users

Hey, I am working on a script which list certain users of my org and perform some action on them in my app.

For using okta api, I dont want to use SSWS api token but build an Auth token using client ID and secret.

Searched for the curl for it and it looks like it requires a scope field.

For that I made a custom scope (read.users) for the default authorization server but not sure how to give it permissions for listing users. It gives out 401 with the generated session token.

Also how is it different from generic okta.users.read scope and what all other tokens can be generated for this use-case?


6qo9p likes this.
This question is closed.
Loading
Fetch auth token to list users