<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007pLIe3CAGOkta Classic EngineAdministrationAnswered2026-04-01T09:00:20.000Z2022-07-20T14:10:16.000Z2022-07-22T19:18:53.000Z

ndmyb (ndmyb) asked a question.

How to get Okta group rule IDs for terraform import?

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?


  • b5n6c (b5n6c)

    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

    Expand Post
    Selected as Best
  • b5n6c (b5n6c)

    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

    Expand Post
    Selected as Best
  • k5fuw (k5fuw)

    rockstar has an Export Group Rules function that downloads a CSV containing all the details about your group rules, including the IDs.

This question is closed.
Loading
How to get Okta group rule IDs for terraform import?