CmdID / PowerShell / Cmdlets / Grant
Grant-CsExternalAccessPolicy
Enables you to assign an external access policy to a user or a group of users. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 8 parameters Its page in the reference
Parameters
-DomainControllerEnables you to specify the fully qualified domain name (FQDN) of a domain controller to be contacted when assigning the new policy.-GlobalWhen you use this cmdlet without specifying a user identity, the policy applies to all users in your tenant.-GroupSpecifies the group used for the group policy assignment.-IdentityIdentity of the user account the policy should be assigned to.-PassThruEnables you to pass a user object through the pipeline that represents the user being assigned the policy.-PolicyName"Name" of the policy to be assigned.-RankThe rank of the policy assignment, relative to other group policy assignments for the same policy type.-TenantThis parameter is reserved for internal Microsoft use.