<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
0D54z00008qVz1ACASOkta Classic EngineAdministrationAnswered2023-02-23T16:29:47.000Z2023-02-22T20:01:47.000Z2023-02-23T16:29:47.000Z
Get Group Members in powershell

Hello

 

I am trying to get a list of users in various groups. I am trying to use the following:

$ProdGroupMembers = Get-OktaGroupMember $Group.id

 

However, $ProdGroupMembers never gets a value. If I run it from the command line w/o the $prodgroupmembers and actually specify an ID it will give me a list, but it still won't populate $ProdGroupMembers.

 

Any ideas would be greatly appreciated.

 

John

 

 


  • Mihai N. (Okta, Inc.)

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

     

    My advice would be to reach out to the dedicated Developer Forum devforum.okta.com to take advantage of their expertise.  

    While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features. 

     

    In the meantime, here are some resources that might help you out: 

    https://github.com/gabrielsroka/OktaAPI.psm1

    https://gist.github.com/MatthewJDavis/09d07967dbc587b9b684776284ae555c

     

     

     

     

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

     

    Hope my answer helps! 

    --------------------------------

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
This question is closed.
Loading
Get Group Members in powershell