0D54z00009DaejlCABOkta Classic EngineAPI Access ManagementAnswered2023-05-24T21:48:52.000Z2023-05-19T09:36:47.000Z2023-05-24T21:48:52.000Z

MeetA.31575 (Customer) asked a question.

Getting conflicting ERROR messages while fetching different objects NOT part of the Okta Classic Engine.

In the Okta Developer documentation, it is mentioned that, following 2 items will be only available as part of Okta Identity Engine.

1.     Policy of type ACCESS_POLICY and PROFILE_ENROLLMENT

2.     UI Schema

 

So, when we are trying to fetch UI Schemas using /api/v1/meta/uischemas API endpoint, we are getting this error message β€œYou do not have permission to access the feature you are requesting” with status code 401.

 

But, when we try to fetch Policies of type ACCESS_POLICY and PROFILE_ENROLLMENT using /api/v1/policies?type=${type} API endpoint, we are getting this error message β€œThe request was not valid: Invalid policy type specified” with status code 400.

 

As both items are part of the Okta Identity Engine, why are we receiving two different error messages with different status code. Error message we are getting for policy mentioned types doesn’t clearly justify that this item is not part of the Okta Classic Engine as it is for UI Schema.

 

It would be helpful if Okta support team could explain the rationale behind this. If anybody has seen similar behavior, please share your thoughts in the comment.


  • User16594883467582706479 (Customer Support Online Experience)

    Hi, @MeetA.31575 (Customer)​ 

     

    Thank you for posting on our Community page!

     

    Schema API is an Early Access feature that you will need to enable with the help of your Account Executive. 

     

    Also, please check this article for more info on Policy API:

    https://developer.okta.com/docs/reference/api/policy/

     

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

    _____________________________________________________________________________

    Watch and Learn: New Okta how-to videos, plus what's new this month in the May newsletter.

    _____________________________________________________________________________

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

    _____________________________________________________________________________

    Expand Post
    • MeetA.31575 (Customer)

      Hi @User16594883467582706479 (Customer Support Online Experience)​,

       

      Thank you for your reply and references you provided in the answer. I already know about this article: https://developer.okta.com/docs/reference/api/policy/

       

      But, my question is different. Both objects (Policy of type ACCESS_POLICY and PROFILE_ENROLLMENT and UI-Schema) are part of the Okta Identity Engine, then why are we receiving two different error messages with different status code? Errors should be identical so it could help us to differentiate which objects we can fetch without any errors in which okta version classic or Identity.

       

      There is specific mention of this behavior in the okta documentation. That's why I asked πŸ™‚

       

      Thanks.

      Expand Post
  • User16594883467582706479 (Customer Support Online Experience)

    Hi, @MeetA.31575 (Customer)​ 

     

    The objects are different, therefore returning different errors. Schema API, as mentioned, is returning that specific error because the feature flag is not enabled for it and you should get in touch with your Account Executive for it. For the Access Policy, you get that error because you did not set a parameter correctly. 

     

    401 = you don’t have access to that feature, usually because of a missing feature flag

    400 = the feature is allowed, but the parameters you set are incorrect, therefore not returning anything

     

    Hope this helps!

    _____________________________________________________________________________

    Watch and Learn: New Okta how-to videos, plus what's new this month in the May newsletter.

    _____________________________________________________________________________

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

    _____________________________________________________________________________

    Expand Post
This question is closed.

Recommended content

No recommended content found...