SOLVED
Home

Using Microsoft Graph to Assign Team Custom Policies

%3CLINGO-SUB%20id%3D%22lingo-sub-1101446%22%20slang%3D%22en-US%22%3EUsing%20Microsoft%20Graph%20to%20Assign%20Team%20Custom%20Policies%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1101446%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20issue%20I'm%20having%20it's%20taking%20days%20many%20days%20to%20assign%20custom%20Team%20Policies%20to%20over%20200000%20users%20using%20the%20Cs%20Powershell%20module.%20What%20make%20even%20hard%20to%20assign%20these%20custom%20policies%20is%20the%20constant%20failure%20of%20the%20scripts%2C%20even%20with%20paging%20the%20process.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20assigning%20each%20user%20the%20following%20polices%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGrant-CsTeamsMeetingPolicy%20-Identity%20%24User%20-PolicyName%20%24Policy%3CBR%20%2F%3EGrant-CsTeamsCallingPolicy%20-Identity%20%24User%20-PolicyName%20%24Policy%3CBR%20%2F%3EGrant-CsTeamsMessagingPolicy%20-Identity%20%24User%20-PolicyName%20%24Policy%3C%2FP%3E%3CP%3EGrant-CsTeamsMeetingBroadcastPolicy%20-Identity%20%24User%20-PolicyName%20%24Policy%3CBR%20%2F%3EGrant-CSTeamsAppPermissionPolicy%20-Identity%20%24User%20-PolicyName%20%24Policy%3CBR%20%2F%3EGrant-CSTeamsAppSetupPolicy%20-Identity%20%24User%20-PolicyName%20%24Policy%3CBR%20%2F%3EGrant-CsTeamsCallParkPolicy%20-Identity%20%24User%20-PolicyName%20%24Policy%3CBR%20%2F%3EGrant-CsTeamsChannelsPolicy%20-Identity%20%24User%20-PolicyName%20%24Policy%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20hoping%20it's%20possible%20to%20use%20Graph%20to%20assign%20custom%20Team%20policies%20to%20Users.%20If%20so%2C%20which%20API%20do%20I%20use%20and%20the%20url%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-Larry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1101446%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Graph%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1102258%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Microsoft%20Graph%20to%20Assign%20Team%20Custom%20Policies%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1102258%22%20slang%3D%22en-US%22%3E%3CP%3EThose%20operations%20are%20not%20yet%20exposed%20via%20the%20Graph%20API.%20Considering%20the%20number%20of%20users%2C%20aren't%20you%20better%20off%20setting%20these%20as%20default%20policies%20though%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1117073%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Microsoft%20Graph%20to%20Assign%20Team%20Custom%20Policies%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117073%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F103153%22%20target%3D%22_blank%22%3E%40Larry%20Jones%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20sure%20fully%20covers%20your%20needs%2C%20but%20with%20the%20following%20third%20party%20solution%20you%20can%20apply%20some%20of%20the%20communication%20control%20policies%20based%20on%20AD%20groups-%20controlling%20chat%2C%20audio%2C%20video%20and%20sharing%20without%20the%20need%20to%20apply%20one%20by%20one%20the%20policies%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEthical%20wall%20for%20Teams%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fagatsoftware.com%2Fmicrosoft-teams-ethical-wall%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fagatsoftware.com%2Fmicrosoft-teams-ethical-wall%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1123467%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Microsoft%20Graph%20to%20Assign%20Team%20Custom%20Policies%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123467%22%20slang%3D%22en-US%22%3EThank%20You%2C%3C%2FLINGO-BODY%3E
Highlighted
Larry Jones
Contributor

The issue I'm having it's taking days many days to assign custom Team Policies to over 200000 users using the Cs Powershell module. What make even hard to assign these custom policies is the constant failure of the scripts, even with paging the process.

 

I'm assigning each user the following polices:

 

Grant-CsTeamsMeetingPolicy -Identity $User -PolicyName $Policy
Grant-CsTeamsCallingPolicy -Identity $User -PolicyName $Policy
Grant-CsTeamsMessagingPolicy -Identity $User -PolicyName $Policy

Grant-CsTeamsMeetingBroadcastPolicy -Identity $User -PolicyName $Policy
Grant-CSTeamsAppPermissionPolicy -Identity $User -PolicyName $Policy
Grant-CSTeamsAppSetupPolicy -Identity $User -PolicyName $Policy
Grant-CsTeamsCallParkPolicy -Identity $User -PolicyName $Policy
Grant-CsTeamsChannelsPolicy -Identity $User -PolicyName $Policy

 

I'm hoping it's possible to use Graph to assign custom Team policies to Users. If so, which API do I use and the url?

 

Thank You,

 

-Larry

3 Replies
Highlighted
Solution

Those operations are not yet exposed via the Graph API. Considering the number of users, aren't you better off setting these as default policies though?

Highlighted

@Larry Jones 

Not sure fully covers your needs, but with the following third party solution you can apply some of the communication control policies based on AD groups- controlling chat, audio, video and sharing without the need to apply one by one the policies 

 

Ethical wall for Teams

https://agatsoftware.com/microsoft-teams-ethical-wall

Highlighted