
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?

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.
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.