<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
0D54z00007j4eyTCAQOkta Classic EngineAPI Access ManagementAnswered2023-06-22T21:37:15.000Z2022-06-16T14:38:05.000Z2022-06-17T16:19:00.000Z

PunitS.63931 (Customer) asked a question.

Add groups to Policy

I dont see a way that we can update policy by adding groups only. Update policy api which is put was hoping that it can add groups to existing groups but looks like include expects all the groups to be listed.

 

Also for MFA enrollment policy we need to pass settings and other fields where I just want to add existing group to the policy.

 

Is there a way that we can just pass groups to policy and it takes care of adding it.


  • Mihai N. (Okta, Inc.)

    Hi @PunitS.63931 (Customer)​ , Thank you for reaching out to the Okta Community!

     

    This is the way the API calls currently work. The Body of the call will have to contain the entire policy information and to that you add the desired changes. 

     

    The easiest way you can do this would be to run a GET call first for the policy you want to change, then copy-paste the body of the response to the PUT call you want to run and make small adjustments to it with the information you want. 

     

    Hope it helps! 

    Expand Post
This question is closed.
Loading
Add groups to Policy