Home

Opt in or out agents via PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-393031%22%20slang%3D%22en-US%22%3EOpt%20in%20or%20out%20agents%20via%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-393031%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20guys%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20struggling%20with%20the%20following%20question%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20currently%20working%20on%20new%20call%20flows%20inside%20my%20company.%201%20flow%20needs%20to%20have%20the%20opt-in%20%2F%20out%20option.%26nbsp%3B%3C%2FP%3E%3CP%3EBy%20default%2C%20when%20this%20option%20is%20enabled%20at%20first%2C%20all%20agents%20are%20opted%20in.%20In%20this%20flow%2C%20this%20isn't%20needed%20at%20all.%26nbsp%3B%3C%2FP%3E%3CP%3EEveryone%20needs%20to%20be%20opted%20out%20except%20the%20agents%20that%20are%20handling%20these.%20I'm%20talking%20about%20a%20100-ish%20users.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20set%20the%20agents'%20their%20status%20to%20%22opted%20out%22%20via%20PowerShell%20instead%20of%20making%20all%20these%20users%20to%20opt%20out%20manually%3F%3C%2FP%3E%3CP%3EI%20know%20you%20can%20get%20these%20users%20with%20Get-CsHuntGroup%2C%20but%20it%20seems%20you%20can't%20set%20the%20agents%20with%20Set-CsHuntGroup%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-393031%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Andreas_94-
New Contributor

Hi guys

 

I'm struggling with the following question:

 

I'm currently working on new call flows inside my company. 1 flow needs to have the opt-in / out option. 

By default, when this option is enabled at first, all agents are opted in. In this flow, this isn't needed at all. 

Everyone needs to be opted out except the agents that are handling these. I'm talking about a 100-ish users. 

 

Is there a way to set the agents' their status to "opted out" via PowerShell instead of making all these users to opt out manually?

I know you can get these users with Get-CsHuntGroup, but it seems you can't set the agents with Set-CsHuntGroup

 

Thanks!

Related Conversations