<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
System Status
Announcements
Announcements
Search
Search
Select Language
0D5WR00002WA3bM0ATOkta Identity EngineWorkflowsAnswered2026-11-25T19:52:03.000Z2026-11-25T15:38:25.000Z2026-11-25T19:52:03.000Z

JonathanG.38768 (Customer) asked a question.

Starting in Workflows - Connecting to Okta for Bulk Device Import

Hi, for starter, I'm just starting to dabble in Workflows because I wanted to test the Early Feature of Device Sensor posture to Enroll Shared Devices in Okta, and I found out that in order to do that we need to use Workflows to Import the devices.

 

I've got to a point where I'm trying to use the Okta App in the Flow to Create an Import Session. But I'm a at a loss on what to do now to fix my error.

 

At first I had a 403 error pointing to needing to add and Grant the two okta.identitySources.manage and okta.identitySources.read Scopes within the Workflows OAuth app (which I had to do with an API script since they weren't visible inside the GUI).

 

Now, I'm getting a 401 Unauthorized error and I can't see what I'm missing.

 

Okta Workflows action: okta.createAnImportSession

HTTP status: 401 Unauthorized

Error code: E0000015

Error: You do not have permission to access the feature you are requesting

 

I have already Re-Authorized the connection after I ran the script to Grant access to the two scopes mentioned earlier. The user is Super Admin and member of the Okta application Workflows and Workflows OAuth.

 

Both early access features are enabled: Okta Verify Device Posture Sensor Mode and Okta Verify Device Posture Sensor Mode for mobile.

 

What should I do next?


  • Paul S. (Okta, Inc.)

    Hello @JonathanG.38768 (Customer)​ Thank you for posting on our Community page!

     

    You are asking how to resolve a 401 Unauthorized error (code E0000015) from the Okta Workflows action that creates an Import Session for Device Sensor shared-device enrollment, after granting the okta.identitySources.manage and okta.identitySources.read scopes to the Workflows OAuth app.

     

    Solution: The Okta Workflows OAuth connection only requests a fixed subset of Okta API scopes, and the identity sources scopes are generally unavailable to it until the feature is enabled for your org. Confirm feature enablement with Okta Support, then re-authorize the connection. If the scopes still are not requested, use a custom OIDC app.

    1. Open a support case with Okta Support and request that the Identity Sources (Anything as a Source / XaaS) feature be enabled for your org, citing the Device Sensor shared-device import use case. Once enabled, the okta.identitySources.manage and okta.identitySources.read scopes become available on the Workflows OAuth app.
    2. Verify in the Admin Console under Applications → Applications → Okta Workflows OAuth → Okta API scopes that both scopes now appear and are granted.
    3. Delete and re-create the Okta connection in Workflows, then re-authorize it so the consent request includes the new scopes. A reauthorization of an existing connection can keep the old grant set.
    4. Rerun the okta.createAnImportSession action. If it still returns 401 E0000015, the feature is not enabled for the org, and the case should stay open with Okta Support.
    5. If the scopes are enabled but still not requested by the connector, create a custom OIDC web application in the Admin Console, grant the required scopes to it, and call the Identity Sources endpoints through the Workflows HTTP connector using that app's authorization. This route is the documented workaround for scopes that the Okta connector does not request.

     

    Because Device Sensor shared-device enrollment depends on an early access feature, also confirm with Okta Support that your org is enrolled in the Device Sensor early access program for both the desktop and mobile modes, since the feature enablement is handled on the Okta side.

     

    Thank you for reaching out to our Community and have a great day!

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post

Loading
Starting in Workflows - Connecting to Okta for Bulk Device Import
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply