Skip to content

Commit

Permalink
Update AddTeamsUser.cs (#1953)
Browse files Browse the repository at this point in the history
Add-PnPTeamUser should treat Channel param as optional
  • Loading branch information
YuriySamorodov authored Jun 8, 2022
1 parent 9d87041 commit 6df5fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/Teams/AddTeamsUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class AddTeamsUser : PnPGraphCmdlet
[Parameter(Mandatory = true, ParameterSetName = ParamSet_ByMultipleUsers)]
public TeamsTeamPipeBind Team;

[Parameter(Mandatory = true, ParameterSetName = ParamSet_ByUser)]
[Parameter(Mandatory = false, ParameterSetName = ParamSet_ByUser)]
public TeamsChannelPipeBind Channel;

[Parameter(Mandatory = true, ParameterSetName = ParamSet_ByUser)]
Expand Down Expand Up @@ -77,4 +77,4 @@ protected override void ExecuteCmdlet()
}
}
}
}
}

0 comments on commit 6df5fed

Please sign in to comment.