<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
0D54z000091DKlJCAWOkta Identity EngineWorkflowsAnswered2024-04-03T16:09:08.000Z2023-04-01T02:46:49.000Z2023-06-28T19:15:54.000Z

MatthewH.10249 (State of Iowa) asked a question.

Need help with /idp/myaccount/emails/ in Workflow as I'm getting a 401 Unauthorized error

I have a Workflow where I would like to leverage the API /idp/myaccount/emails/ but I'm getting a 401 Unauthorized error even after I granted the okta.myAccount.email.read scope to the Okta Workflows OAuth app and reauthorized the associated Okta Workflow Connection.


  • Hi @MatthewH.10249 (State of Iowa)​ , Thank you for reaching out to the Okta Community!

     

    The 401 typically means there's something wrong with the token. 

    Also, I know the docs say you can use okta.myAccount.email.read OR okta.myAccount.email.manage , but try it with "manage" to see if you get the same error.

     

     

     

    If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

     

    Hope my answer helps! 

    --------------------------------

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
  • TimL.58332 (Workflows)

    @MatthewH.10249 (State of Iowa)​  - The Okta Workflows Oauth application only supports the following scopes:

     

    https://help.okta.com/wf/en-us/Content/Topics/Workflows/connector-reference/okta/overviews/guidanceforoktaconnector.htm

     

    So even if you enable them in the application when you perform the authorization (or reauth) its only going to request that specific list.

     

    You would need to do similar to what I described in your other earlier post which is use an OIDC webapp + HTTP connector and explicitly request the needed scope.

    Expand Post
    Selected as Best
This question is closed.
Loading
Need help with /idp/myaccount/emails/ in Workflow as I'm getting a 401 Unauthorized error