
BenB.62283 (Customer) asked a question.
dev.okta.url/api/v1/users/okta_user_id
When I send a curl request to the Users API, the returned user profile does not contain the Users Department.
How to query to find out this information? ... (title,division,department, etc)

Do you see that information on the user's profile page in the GUI? When I query the same: {url}/api/vi/users/{userid} I see the user and all of their attributes.
What information is returned after the call is made as above?
Could you try this? {{url}}/api/v1/users?search=profile.department eq "IT Infrastructure"
In your case, replace IT Infrastructure with the department applicable to you.
Just returns an empty array
User error here....I was querying using the wrong User ID.
No worries! Thanks for following up. Hopefully you were able to catch the whole profile now.
thanks!
@BenB.62283 (Customer)​ department is available in the profile by find user. title,division, not in it.
Does the profile tested with have values for those attributes? I am able to see even custom attributes in my API calls. Thanks!
I was accidentally quering my admin account id and not the correct user account id, which did/does not have any custom attributes associated with it. When I changed my API call using the correct user id, the attribute showed up properly in my code. I did not inspect the entire API result and I was really only testing 1 attribute ... department.
quering -> querying 😀