Hi Is there any API which can give me all the app groups for a particular application? The current implementation in AppGroupApiClient class in SDK gives me all Okta User Groups assigned to the application and not the app groups present inside the application.
The Okta APIs don't currently support this query. As you mentioned, you can query for all groups to which an application is assigned. You can also query for OKTA_GROUP and APP_GROUP group types. However, once you have a list of APP_GROUP groups (groups that were imported from apps into Okta), you can't currently determine which ones came from particular apps.