Grant-CsTeamsFilesPolicy

Assigns an online teams files policy to a user account, to a group of users, or set the tenant Global instance. Online teams files policies manage usages of files-related features.

Syntax

Grant-CsTeamsFilesPolicy
     [-Global]
     [[-PolicyName] <String>]
Grant-CsTeamsFilesPolicy
     [[-PolicyName] <String>]
     [-Group] <String>
Grant-CsTeamsFilesPolicy
     [[-PolicyName] <String>]
     [-Identity <String>]

Description

This cmdlet assigns an existing user-specific online teams files policy to a user, a group of users, or the Global policy instance.

Examples

Example 1

Grant-CsTeamsFilesPolicy -Identity "user@contoso.com" -PolicyName NativeEntrypointDisabled

The command shown in Example 1 assigns the per-user online teams files policy NativeEntrypointDisabled to a single user user@contoso.com.

Example 2

Grant-CsTeamsFilesPolicy -Group sales@contoso.com -PolicyName NativeEntrypointDisabled

The command shown in Example 2 assigns the online teams files policy NativeEntrypointDisabled to the members of the group sales@contoso.com.

Parameters

-Global

Sets the parameters of the Global policy instance to the values in the specified policy instance.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Group

Specifies the group used for the group policy assignment.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Identity

The Identity parameter represents the ID of the specific user in your organization; this can be either a SIP address or an Object ID.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-PolicyName

A unique identifier(name) of the policy.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Notes

The GrantToGroup syntax is supported in Teams PowerShell Module 4.5.1-preview or later.