
PatrickM.70145 (Customer) asked a question.
I am working on creating a custom Okta Workflow to automate the Salesforce Refresh process. Part of the refresh process requires us to remap the Okta groups assigned the app. Unfortunately there is no built in function to get all groups from an application based on App ID. There is a built in function but it requires the us to manually select the application which makes no sense and completely defeats the purpose of automation if I still need to manually select the application. Does anyone have an example Workflow which can pull every group assigned to a specific application based on App ID?

Thank you for reaching out to Okta Support, my name is Catalin.
The closest you could use is the 'list applications' with API calls :
https://developer.okta.com/docs/reference/api/apps/#list-applications-assigned-to-a-group
The list application API call can be used with groups and in the response, it will include a list of users that are part of the group. Unfortunately, it will not work for a specific user within the group.
You could also use the 'Current Assignments' report and filter with the group and the user you need and it will give you the group assignments of the user based on the filters configured.
I would suggest opening a case with our Workflows experts who will better aid you in finding the best way to acomplish what you are looking for.
Thank you.