policy is not applying

Roger Roger 6,406 Reputation points
2024-08-23T23:07:53.5566667+00:00

Hi all,

I have created a Teams policy, and I want to assign it to a security group that was created in Azure AD. I have an Azure AD group, let's call it SG1, and I have added one user, User1, to it. When I use the syntax below, it prompts me for a rank, and I entered it as number 5:

Grant-CsExternalAccessPolicy -Group "GroupId" -PolicyName "Teamspolicy1"

However, when I use the syntax below, I don't see the policy being applied to User1; the ExternalAccessPolicy is blank: please guide me

Get-CsOnlineUser -Identity user1@contoso.com | Select-Object ExternalAccessPolicy

Microsoft Exchange Online
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,311 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,578 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,341 questions
{count} votes

Accepted answer
  1. Sayali-MSFT 2,741 Reputation points Microsoft Vendor
    2024-08-26T08:57:19.24+00:00
    1. Check Policy Assignment Ensure the policy is properly assigned to the group. You might want to list all policies and confirm that "Teamspolicy1" exists and is assigned correctly.
         
         Get-CsExternalAccessPolicy
      
    2. Verify Group Membership Ensure that User1 is indeed a member of SG1 and that the group ID used in the Grant-CsExternalAccessPolicy command is correct.
         
         Get-AzureADGroupMember -ObjectId "GroupId"
      
    3. Wait for Replication Sometimes policy changes can take a few minutes to propagate. Wait for a bit and then recheck the user’s policy assignment.

    Reference Doc:-https://learn.microsoft.com/en-us/microsoftteams/assign-policies-users-and-groups


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.