Forum Discussion

EntilZha's avatar
EntilZha
Iron Contributor
Jan 10, 2020
Solved

Using Microsoft Graph to Assign Team Custom Policies

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

  • 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?

3 Replies

  • Yoav Crombie's avatar
    Yoav Crombie
    Iron Contributor

    EntilZha 

    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

  • 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?

Resources