
User16198266428895633157 (Customer) asked a question.
In admin UI go to Directory -> Profile Editor -> User (default) Okta Profile.
Here you see list of all Attributes.
I want to programmatically pull attributes list using http request. I don't need to code details but rather looking for Okta API Endpoint. I have tried the Schemas endpoint but none are working for me.

I just tried this alternative. Not sure this is the best practice....
Call https://{okta_domain}/api/v1/meta/types/user first. Parse the response. Grab the appID and use it in the next call https://{okta_domain}/api/v1/meta/schemas/user/{appID}}.
Now I am looking for a best way to get the appID for the User (default) Okta Profile. My above solution is a weird workaround.
Hi @User16198266428895633157 (Customer) , Thank you for reaching out to the Okta Community!
This question is more appropriate for our dedicated Okta Developer Forum.
My advice would be to reach out via devforum.okta.com to take advantage of their expertise.
While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-custom/developer work).
In the meantime you can review the Schemas API doc for insights into the available options.
Regards.
--
Help others in the community by liking or hitting Select as Best if this response helped you.
Level up your Identity security superpowers with Okta Learning.
Join the Online Discussion for Ask me Anything on March 25, 2025: Identity Threat Protection with Okta AI
Kamlesh, Your List User API (User API) call should provide all the profile info (non null values) under the profile section in the response. HTH
@BalaP.90849 (Okta) - My original question was about User Schema and not User data (User API) as you mentioned here. As @Mihai Negoita - Okta (Okta, Inc.) suggested I will take this question to the devforum.okta.com.
Thank you both for a quick response.
Take care.
@User16198266428895633157 (Customer) - I reread your post and you are following right approach (user->apps and appid)
For the default user profile , you can try the "User Type API" and grab the ID (default)..
if you have already tried that please ignore this mesg
@BalaP.90849 (Okta) You said "For the default user profile , you can try the "User Type API" and grab the ID (default)" ...
Can you help me understand this a bit more?
[
{
"id": "otypmjef2t8Ci6IGF697",
"displayName": "User",
"name": "user",
"description": "Okta user profile template with default permission settings",
"createdBy": "sprpmjef1gbm3m40X697",
"lastUpdatedBy": "sprpmjef1gbm3m40X697",
"created": "2025-03-12T20:25:33.000Z",
"lastUpdated": "2025-03-12T20:25:33.000Z",
"default": true,
"_links": {
"schema": {
"rel": "schema",
"href": "https://trial-xxxxxxx.okta.com/api/v1/meta/schemas/user/oscpmjef2t8Ci6IGF697",
"method": "GET"
},
"self": {
"rel": "self",
"href": "https://trial-xxxxxxx.okta.com/api/v1/meta/types/user/otypmjef2t8Ci6IGF697",
"method": "GET"
}
}
}
]
I have to now parse the response and grab the response[0]._links.schema.href where key = "response[0]._links.schema.rel = "schema". Grab the last part of the href after .../user/
Is there a better way to get (via API call) a list of User schemas in Okta tenant?
The above API call is to get User Types -- https://{okta_domain}/api/v1/meta/types/user
-Take care
Kamlesh , you got the above one right.
if there was only default user type you could have got it with single api call to pull default okta attribiutes - https://trial-xxxxxxx.okta.com/api/v1/meta/schemas/user/default
when you have multiple user types , you will have to pull all the user types and then grab their respective schema ID (like you have done above) .
After that You may have to make an additional call to pull the respective schema attributes
Hope this provides clarity
@BalaP.90849 (Okta) I just confirmed that https://trial-xxxxxxx.okta.com/api/v1/meta/schemas/user/default returns default schema with custom and base attributes. This should be good for me.
Question: Let's say I have multiple user types then will https://trial-xxxxxxx.okta.com/api/v1/meta/schemas/user/default still return default schema? Or error Or array of multiple Schema responses?
I assume because I have API with .../user/default it would still return me the default user schema. If that is the case then it is guaranteed to return me response for any given Okta tenant.
Correct?
Once again thank you.
As it sdtands, it will still return the default schema (Default okta user). I have 2 user types in my tenant and it returns the schema (Default)
But for other user types you will have to pass schema id
Excellent. Thank you Nice to meet you.