
ndmyb (ndmyb) asked a question.
We're trying to import Okta resources into Terraform using the Okta provider. We've run into a blocker while trying to import group rules where the Group Rule ID is not visible in the Okta admin console. Only the Group rule name and conditions are visible on expanding the rule, does anyone know how to get the Group Rule ID from console/api?

Hi Ankit Sethi,
To perform this you can use the predefined API collections available in Postman. In postman, under group API you can search with Get {{url}}/api/v1/groups/rules?limit=200 .
Reference : https://developer.okta.com/docs/reference/api/groups/#list-group-rules
Or you can use rockstar extension for this .With the Rockstar extension being added to the browser, admin will have privileges for exporting the groups/ rules by providing the conditions as per the requirements.
To get group rule ID's , select API Explorer > From the list select the query ( /api/v1/groups/rules ) to get the list of ID's >Click Send