|
32 | 32 | .PARAMETER DefaultUserPassword
|
33 | 33 | The fallback user password used for creating new users. This value is only considered if not given in the CSV or pipeline user data.
|
34 | 34 |
|
35 |
| - .PARAMETER DefaultUserPermissions |
36 |
| - The fallback user permissions used for creating new users. This value is only considered if not given in the CSV or pipeline user data. |
37 |
| - Must be a comma-separated list of user permissions, see the "TeamViewer API Documentation" for valid inputs. |
38 |
| -
|
39 | 35 | .PARAMETER DefaultSsoCustomerId
|
40 | 36 | The fallback SSO customer ID, used for creating new users that are already enabled and activated for SSO logins.
|
41 | 37 | This value is only considered if not given in the CSV or pipeline user data.
|
|
95 | 91 | [Parameter(Mandatory = $false)]
|
96 | 92 | [securestring] $DefaultUserPassword,
|
97 | 93 |
|
98 |
| - [Parameter(Mandatory = $false)] |
99 |
| - [string[]] $DefaultUserPermissions = @('ShareOwnGroups', 'EditConnections', 'EditFullProfile', 'ViewOwnConnections'), |
100 |
| - |
101 | 94 | [Parameter(Mandatory = $false)]
|
102 | 95 | [securestring] $DefaultSsoCustomerId
|
103 | 96 | )
|
@@ -172,13 +165,6 @@ function Import-TeamViewerUser {
|
172 | 165 | $additionalParameters['WithoutPassword'] = $true
|
173 | 166 | }
|
174 | 167 |
|
175 |
| - if ($user.permissions) { |
176 |
| - $additionalParameters['Permissions'] = $user.permissions -split ',' |
177 |
| - } |
178 |
| - elseif ($DefaultUserPermissions) { |
179 |
| - $additionalParameters['Permissions'] = $DefaultUserPermissions |
180 |
| - } |
181 |
| - |
182 | 168 | if ($user.language) {
|
183 | 169 | $additionalParameters['Culture'] = [cultureinfo]$user.language
|
184 | 170 | }
|
|
0 commit comments