<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
0D54z00008LT53uCADOkta Classic EngineAPI Access ManagementAnswered2024-05-03T03:15:12.000Z2022-11-07T23:30:57.000Z2023-04-13T06:56:23.000Z

Bulk remove groups using powershell

Hello,

 

I'm trying to remove all the group in our okta preview.

 

I call the remove-oktagroup with the group id number and I get this:

 

Invoke-RestMethod: {"errorCode":"E0000022","errorSummary":"The endpoint does not support the provided HTTP

method","errorLink":"E0000022","errorId":"oaePMHBFLquTaq8KX8pRaPsbw","errorCauses":[]}

 

Any assistance would be appreciated. I really don't want to have to remove them one by one in the GUI.

 

Thanks

John


  • User16594883467582706479 (Customer Support Online Experience)

    Hi, @User15976987613926449178 (Customer)​ 

     

    Thank you for posting on our Community page!

     

    I have done some research and found this article that would assist your use case with the use of API:

     

    Hope this helps!

     

    Thank you for reaching out to our Community and have a great day!

     

    _____________________________________________________________________________

    The October issue of the Okta Community is here and packed with tips on certification, how to earn badges, and new releases. Let us help you stay connected.

    _____________________________________________________________________________

    If my answer helped, remember to select it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

    _____________________________________________________________________________

     

    Expand Post
    • SudhakarB.97221 (Customer)

      Hi John, were you able to remove all the groups from the app assignment at once? by not using group id one by one?

      • SudhakarB.97221 (Customer)

        Can you let me know which solution helped you? did you try to remove using the Group id?

        Let me explain my requirement, i have 100+ plus AD groups assigned to an application in a SAML application, i need to remove all at once and not by using a group id one by one. Is there any solution for this?

        Expand Post
This question is closed.
Loading
Bulk remove groups using powershell
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply