<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
0D54z00007dDTH9CAOOkta Classic EngineAdministrationAnswered2026-05-01T09:01:18.000Z2022-05-06T20:14:54.000Z2022-10-17T10:54:41.000Z

dse7i (dse7i) asked a question.

How to get an API Token for a custom admin

What is the "correct" way to create an Okta Administrative API Token for a user with a custom admin role?

 

I created a custom "read-only" admin role that has the following

User permissions

- View users and their details

Group permissions

- View groups and their details

 

I also created a source set of all users and groups in the org:

User resources

- All users in the organization

Group resources

- All groups in the organization

 

Then, I assigned this role and resource set to a user. I logged in as the user and through the UI, I can correctly see all users and groups in the directory. I can also view tokens at https:/<my okta domain>.com/admin/access/api/tokens. What I cannot do is create a new token. How should I do this?

 

As a workaround, I found I can elevate this user to the standard "Read-only Administrator" admin role, create the token, and then remove the role. This seems clunky.


This question is closed.
Loading
How to get an API Token for a custom admin