This article explains how to update the AND User's group membership includes field in an authentication policy rule via Application Programming Interface (API).
- Okta Identity Engine (OIE)
- Authentication Policy
- Application Programming Interface (API)
-
Create a PUT call in Postman to the following endpoint:
<url>/api/v1/policies/<policyId>/rules/<ruleId> - Enter the following JSON body to assign groups to the rule in the authentication policy:
{ "system": false, "type": "ACCESS_POLICY", "name": "<RULE_NAME>", "conditions": { "people": { "groups": { "include": [ "<group_id1>","<group_id2>","<group_id3>" ] } } } }
- Verify that the changes are reflected in the authentication policy rule.
