How do I validate an Okta identifier? Skip to main content
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Kevin LovelandKevin Loveland 

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 DawsonWils Dawson (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,
Dylann FezeuDylann Fezeu (Customer First Programs)
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