<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
0D50Z00008G7VJkSANOkta Classic EngineIntegrationsAnswered2024-04-30T09:18:25.000Z2018-04-26T18:19:02.000Z2018-08-08T20:42:30.000Z

KevinL.87250 (Customer) asked a question.

How do I validate an Okta identifier?
Many of the API endpoints take an identifier (e.g., user id, application id, etc.). These identifiers appear to have some kind of constraints. What are the constraints on these identifiers that I can use to validate before I make a call to the Okta API (i.e., length, valid characters, etc.)?

  • Wils (Okta, Inc.)

    Hi Kevin,

     

    Any perceived constraints today may change tomorrow and Okta reserves the right to change the format of these IDs at will. We recommend that you treat these as opaque strings for any code that you write that leverages Okta's APIs. You shouldn't need to do any validation of these IDs as Okta will always generate them itself.

     

    Hope that helps,

    Wils
    Expand Post
  • j5v7c (j5v7c)

    Hello Kevin,

     

    Thanks for posting your inquiry in Okta Community Portal.

     

    If you receive a great answer to your question(s), please help readers find it by marking it the best answer. Hover over the answer and click "Best Answer." 

     

    Thank you,

     

    Dylann Fezeu

    Okta Help Center Team
    Expand Post
This question is closed.
Loading
How do I validate an Okta identifier?