
lvlhd (lvlhd) asked a question.
Group rule using api
i am trying to exrtact the rule of a specific group name using api but it is giving me the blank response
please help
i am using below api endpoint
groups_endpoint = f'{client_config["orgUrl"]}/api/v1/groups'

Hi Nishant,
Thanks for reaching out to OKTA community.
The API endpoint which you can use to find out the group rule is: GET/api/v1/groups/rules
Also, you can refer this link for your reference: Groups | Okta Developer
can you share script for the same?
still i get this - Failed to fetch group rules. Status code: 404
Hi Nishant,
If you check this link Groups | Okta Developer, the script is already present to find the Group rule.
curl -v -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: SSWS ${api_token}" \
"https://${yourOktaDomain}/api/v1/groups/rules?limit=30"