<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
0D54z0000A1ASLpCQOOkta Classic EngineAPI Access ManagementAnswered2024-03-19T18:32:07.000Z2024-03-07T13:12:42.000Z2024-03-19T18:32:07.000Z
  • TimL.58332 (Workflows)

    @User1601986470878802877 (Customer)​ -- You likely need to elaborate on the use case / scenario. Apps with "import" options have other provisioning capabilities making this type of thing possible. It is typically up to the specific application.

     

    There is also something called Anything as a source. The following link will give you an overview:

     

    https://help.okta.com/en-us/content/topics/users-groups-profiles/usgp-use-anything-as-a-source.htm

     

     

    Expand Post
    Selected as Best
  • @TimL.58332 (Workflows)​ Well, I have my application with option "import" available and I am successfully doing that i.e. when I press "Import Now", all of my users are scanned.

     

    I want to perform the same action via REST API, is that possible as you mentioned "Apps with "import" options have other provisioning capabilities making this type of thing possible". Can you point me how to do that? Is it something via /api/v1/apps/{{appId}} or elsewhere?

     

    import

    Expand Post
  • @TimL.58332 (Workflows)​ - If I have to be more concrete what I want to achieve, this is what I have gathered from UI when tracked the request and response, but it returns 200OK with HTML (not JSON) response when I execute it:

     

    curl --location 'https://{{dev_otka_url}}/admin/user/import/{{application_name}}/{{application_id}}/start'

    --header 'X-Okta-Xsrftoken: {{xsrf_token}}' \

    --header 'Referer: https://{{dev_otka_url}}/admin/app/{{application_name}}/instance/{{application_id}}/'

    --header 'Origin: https://{{dev_otka_url}}' \

    --header 'Authorization: SSWS {{api_token}}' \

    --header 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \

    --header 'Accept: application/json' \

    --header 'Cookie: {{Cookie}}' \

    --form 'fullImport="true"' \

    --form '_xsrfToken="{{xsrf_token}}"'

     

    So, I guess there is another way to do that.

    Expand Post
This question is closed.
Loading
Import Users from API