Skip to content

Commit 2bbd230

Browse files
committed
remove immutableid from new-azaduser
1 parent 358e4d8 commit 2bbd230

File tree

6 files changed

+9
-64
lines changed

6 files changed

+9
-64
lines changed

src/Resources/MSGraph.Autorest/custom/Get-AzAdUser.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function Get-AzAdUser {
166166

167167
process {
168168
if ($PSBoundParameters['AppendSelected'] -and $PSBoundParameters['Select']) {
169-
$PSBoundParameters['Select'] += @('DisplayName', 'Id', 'DeletedDateTime', 'UserPrincipalName', 'UsageLocation', 'GivenName', 'SurName', 'AccountEnabled', 'MailNickName', 'Mail', 'onPremisesImmutableId')
169+
$PSBoundParameters['Select'] += @('DisplayName', 'Id', 'DeletedDateTime', 'UserPrincipalName', 'UsageLocation', 'GivenName', 'SurName', 'AccountEnabled', 'MailNickName', 'Mail')
170170
$null = $PSBoundParameters.Remove('AppendSelected')
171171
}
172172

src/Resources/MSGraph.Autorest/custom/New-AzAdUser.ps1

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -260,17 +260,6 @@ param(
260260
# Maximum length is 128 characters.
261261
# Supports $filter (eq, ne, NOT, ge, le, in, startsWith).
262262
${OfficeLocation},
263-
264-
[Parameter()]
265-
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
266-
[System.String]
267-
[Alias('OnPremisesImmutableId')]
268-
# This property is used to associate an on-premises Active Directory user account to their Azure AD user object.
269-
# This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property.
270-
# Note: The $ and _ characters cannot be used when specifying this property.
271-
# Supports $filter (eq, ne, NOT, ge, le, in).
272-
${ImmutableId},
273-
274263

275264
[Parameter()]
276265
[AllowEmptyCollection()]
@@ -475,11 +464,6 @@ param(
475464
$PSBoundParameters['PasswordProfile'] = $passwordProfile
476465
}
477466

478-
if ($PSBoundParameters['ImmutableId']) {
479-
$PSBoundParameters['OnPremisesImmutableId'] = $PSBoundParameters['ImmutableId']
480-
$null = $PSBoundParameters.Remove('ImmutableId')
481-
}
482-
483467
MSGraph.internal\New-AzAdUser @PSBoundParameters
484468
}
485469
}

src/Resources/MSGraph.Autorest/exports/New-AzAdUser.ps1

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -282,16 +282,6 @@ param(
282282
# Supports $filter (eq, ne, NOT, ge, le, in, startsWith).
283283
${OfficeLocation},
284284

285-
[Parameter()]
286-
[Alias('OnPremisesImmutableId')]
287-
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
288-
[System.String]
289-
# This property is used to associate an on-premises Active Directory user account to their Azure AD user object.
290-
# This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property.
291-
# Note: The $ and _ characters cannot be used when specifying this property.
292-
# Supports $filter (eq, ne, NOT, ge, le, in).
293-
${ImmutableId},
294-
295285
[Parameter()]
296286
[AllowEmptyCollection()]
297287
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]

src/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4975,16 +4975,6 @@ param(
49754975
# Supports $filter (eq, ne, NOT, ge, le, in, startsWith).
49764976
${OfficeLocation},
49774977

4978-
[Parameter()]
4979-
[Alias('OnPremisesImmutableId')]
4980-
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
4981-
[System.String]
4982-
# This property is used to associate an on-premises Active Directory user account to their Azure AD user object.
4983-
# This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property.
4984-
# Note: The $ and _ characters cannot be used when specifying this property.
4985-
# Supports $filter (eq, ne, NOT, ge, le, in).
4986-
${ImmutableId},
4987-
49884978
[Parameter()]
49894979
[AllowEmptyCollection()]
49904980
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
@@ -6171,7 +6161,7 @@ GROUPOBJECT <MicrosoftGraphGroup>:
61716161
[OdataId <String>]: The full id of object in directory
61726162
[OdataType <String>]: The type of object in directory
61736163
.Link
6174-
https://docs.microsoft.com/powershell/module/az.resources/remove-azadgrouprefmember
6164+
https://docs.microsoft.com/powershell/module/az.resources/remove-azadgroupmember
61756165
#>
61766166
function Remove-AzAdGroupMember {
61776167
[OutputType([System.Boolean])]

src/Resources/MSGraph.Autorest/exports/Remove-AzAdGroupMember.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ GROUPOBJECT <MicrosoftGraphGroup>:
8585
[OdataId <String>]: The full id of object in directory
8686
[OdataType <String>]: The type of object in directory
8787
.Link
88-
https://docs.microsoft.com/powershell/module/az.resources/remove-azadgrouprefmember
88+
https://docs.microsoft.com/powershell/module/az.resources/remove-azadgroupmember
8989
#>
9090
function Remove-AzAdGroupMember {
9191
[OutputType([System.Boolean])]

src/Resources/Resources/help/New-AzADUser.md

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ New-AzAdUser -DisplayName <String> -MailNickname <String> -Password <SecureStrin
1919
[-Department <String>] [-DeviceEnrollmentLimit <Int32>] [-EmployeeHireDate <DateTime>] [-EmployeeId <String>]
2020
[-EmployeeType <String>] [-ExternalUserState <String>] [-ExternalUserStateChangeDateTime <DateTime>]
2121
[-FaxNumber <String>] [-ForceChangePasswordNextLogin] [-GivenName <String>] [-HireDate <DateTime>]
22-
[-ImmutableId <String>] [-Interest <String[]>] [-IsResourceAccount] [-JobTitle <String>] [-Mail <String>]
23-
[-MobilePhone <String>] [-MySite <String>] [-OfficeLocation <String>] [-OtherMail <String[]>]
24-
[-PasswordPolicy <String>] [-PasswordProfile <IMicrosoftGraphPasswordProfile>] [-PostalCode <String>]
25-
[-PreferredLanguage <String>] [-PreferredName <String>] [-Responsibility <String[]>] [-School <String[]>]
26-
[-ShowInAddressList] [-Skill <String[]>] [-State <String>] [-StreetAddress <String>] [-Surname <String>]
27-
[-UsageLocation <String>] [-UserType <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
28-
[<CommonParameters>]
22+
[-Interest <String[]>] [-IsResourceAccount] [-JobTitle <String>] [-Mail <String>] [-MobilePhone <String>]
23+
[-MySite <String>] [-OfficeLocation <String>] [-OtherMail <String[]>] [-PasswordPolicy <String>]
24+
[-PasswordProfile <IMicrosoftGraphPasswordProfile>] [-PostalCode <String>] [-PreferredLanguage <String>]
25+
[-PreferredName <String>] [-Responsibility <String[]>] [-School <String[]>] [-ShowInAddressList]
26+
[-Skill <String[]>] [-State <String>] [-StreetAddress <String>] [-Surname <String>] [-UsageLocation <String>]
27+
[-UserType <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
2928
```
3029

3130
## DESCRIPTION
@@ -422,24 +421,6 @@ Accept pipeline input: False
422421
Accept wildcard characters: False
423422
```
424423
425-
### -ImmutableId
426-
This property is used to associate an on-premises Active Directory user account to their Azure AD user object.
427-
This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property.
428-
Note: The $ and _ characters cannot be used when specifying this property.
429-
Supports $filter (eq, ne, NOT, ge, le, in).
430-
431-
```yaml
432-
Type: System.String
433-
Parameter Sets: (All)
434-
Aliases: OnPremisesImmutableId
435-
436-
Required: False
437-
Position: Named
438-
Default value: None
439-
Accept pipeline input: False
440-
Accept wildcard characters: False
441-
```
442-
443424
### -Interest
444425
A list for the user to describe their interests.
445426
Returned only on $select.

0 commit comments

Comments
 (0)