Get Users of an Application with Specific Custom Attribute

api

#1

Hi, I am trying to get a list of users that belongs to an application with specific custom attribute.

I found a way to get ALL users that belongs to an application, but not with custom attribute filter.
{{url}}/api/v1/apps/{{clientId}}/users

I also found a way to get a list of users that matches the specific custom attribute, but not associated to an application.
{{url}}/api/v1/users?search=profile.customAttr+eq+\"1000\"

Return object needs to be a list of users of an application.
The custom attribute is an Array type located under user’s ‘profile’ property.

The following API request URL will not filter the user based on the custom attribute, instead will return all users that belongs to the ApplicationID.
{{url}}/api/v1/apps/{{applicationId}}/users?search=profile.customAttr+eq+\"1000\"

Any suggestions or opinions will be appreciated.


#2

Checking with the team, this isn’t possible today unfortunately.

I’ve logged this idea here:
https://support.okta.com/help/ideas/viewIdea.apexp?id=0870Z000000SS6wQAG

Please upvote it!