SOLVED

Powershell Grant-CsTeamsMeetingBroadcastPolicy is not working

%3CLINGO-SUB%20id%3D%22lingo-sub-1244974%22%20slang%3D%22en-US%22%3EPowershell%20Grant-CsTeamsMeetingBroadcastPolicy%20is%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1244974%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3ESince%20the%20admin%20center%20is%20facing%20outage%2C%20am%20trying%20to%20assign%20boardcast%20policy%20to%20users%20through%20powershell%2C%20but%20my%20powershell%20fails%20for%20federated%20users%20with%20below%20error%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EManagement%20object%20not%20found%20for%20identity%20%22%22.%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20InvalidOperation%3A%20(Unnikannan.Ayilliath%40opcw.org%3AString)%20%5BGrant-CsTeamsMeetingBroadcastP%3CBR%20%2F%3Eolicy%5D%2C%20InvalidOperationException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20InvalidOperation%2CMicrosoft.Rtc.Management.AD.Cmdlets.AssignCSTeamsMeetingBroadcastPolicy%3CBR%20%2F%3ECmdlet%3CBR%20%2F%3E%2B%20PSComputerName%20%3A%20admin0e.online.lync.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBelow%20is%20my%20script%3A%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3EImport-Module%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BSkypeOnlineConnector%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24sfbSession%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3D%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ENew-CsOnlineSession%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EImport-PSSession%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%24sfbSession%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24user%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3EGet-CsOnlineUser%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B-Identity%26nbsp%3Buser%3C%2FSPAN%3E%3CSPAN%3E%40federateddomain%3C%2FSPAN%3E%3CSPAN%3E.com%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EWrite-Output%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%24user%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EGrant-CsTeamsMeetingBroadcastPolicy%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B-Identity%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%24user%3C%2FSPAN%3E%3CSPAN%3E.UserPrincipalName%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B-PolicyName%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Allow%26nbsp%3BPublic%26nbsp%3Blive%26nbsp%3Bevents%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3ERemove-PSSession%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%24sfbSession%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3ESome%20checks%20which%20I%20have%20done%20so%20far%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E1.%20If%20I%20try%20to%20assign%20the%20broadcast%20policy%20to%20any%20cloud%20identity%20%2C%20then%20it%20works.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E2.%20The%20federated%20users%20has%20mailbox%20assigned.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EWhat%20could%20be%20wrong%20here%3F%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1244974%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMeetings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1245222%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20Grant-CsTeamsMeetingBroadcastPolicy%20is%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1245222%22%20slang%3D%22en-US%22%3E%3CP%3EI%20don't%20think%20it's%20supported%20for%20federated%20users%2C%20but%20others%20might%20prove%20me%20wrong%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi,

Since the admin center is facing outage, I  am trying to assign broaddcast policy to users through powershell, but my powershell fails for federated users with below error:

 

Management object not found for identity "".
+ CategoryInfo : InvalidOperation: (:String) [Grant-CsTeamsMeetingBroadcastP
olicy], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.Rtc.Management.AD.Cmdlets.AssignCSTeamsMeetingBroadcastPolicy
Cmdlet
+ PSComputerName : admin0e.online.lync.com

 

Below is my script:

Import-Module SkypeOnlineConnector
$sfbSession = New-CsOnlineSession
Import-PSSession $sfbSession
$user=Get-CsOnlineUser -Identity user@federateddomain.com
Grant-CsTeamsMeetingBroadcastPolicy -Identity $user.UserPrincipalName -PolicyName "Allow Public live events"
Remove-PSSession $sfbSession

Some checks which I have done so far:

1. If I try to assign the broadcast policy to any cloud identity , then it works.
2. The federated users has mailbox created and MS Teams licenses assigned.
What could be wrong here?
1 Reply
Highlighted
Solution

I don't think it's supported for federated users, but others might prove me wrong :)