From d075f472cfbbb183dd99b796e808a68bce2aa2bd Mon Sep 17 00:00:00 2001 From: Gautam Sheth Date: Tue, 9 Jun 2020 18:53:29 +0530 Subject: [PATCH 1/2] Fix: removed usage of obsolete ListUnifiedGroups method --- Commands/Base/PipeBinds/UnifiedGroupPipeBind.cs | 4 ++-- Commands/Graph/GetUnifiedGroup.cs | 2 +- Commands/Graph/NewUnifiedGroup.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Commands/Base/PipeBinds/UnifiedGroupPipeBind.cs b/Commands/Base/PipeBinds/UnifiedGroupPipeBind.cs index 6e9092f1b..170e574d7 100644 --- a/Commands/Base/PipeBinds/UnifiedGroupPipeBind.cs +++ b/Commands/Base/PipeBinds/UnifiedGroupPipeBind.cs @@ -52,10 +52,10 @@ public UnifiedGroupEntity GetGroup(string accessToken, bool includeClassificatio } else if (!string.IsNullOrEmpty(DisplayName)) { - var groups = UnifiedGroupsUtility.ListUnifiedGroups(accessToken, DisplayName, includeSite: true, includeClassification:includeClassification); + var groups = UnifiedGroupsUtility.GetUnifiedGroups(accessToken, DisplayName, includeSite: true, includeClassification:includeClassification); if (groups == null || groups.Count == 0) { - groups = UnifiedGroupsUtility.ListUnifiedGroups(accessToken, mailNickname: DisplayName, includeSite: true, includeClassification:includeClassification); + groups = UnifiedGroupsUtility.GetUnifiedGroups(accessToken, mailNickname: DisplayName, includeSite: true, includeClassification:includeClassification); } if (groups != null && groups.Any()) { diff --git a/Commands/Graph/GetUnifiedGroup.cs b/Commands/Graph/GetUnifiedGroup.cs index cba35d65d..6a384d9b5 100644 --- a/Commands/Graph/GetUnifiedGroup.cs +++ b/Commands/Graph/GetUnifiedGroup.cs @@ -65,7 +65,7 @@ protected override void ExecuteCmdlet() else { // Retrieve all the groups - groups = UnifiedGroupsUtility.ListUnifiedGroups(AccessToken, includeSite: !ExcludeSiteUrl.IsPresent, includeClassification:IncludeClassification.IsPresent, includeHasTeam: IncludeHasTeam.IsPresent); + groups = UnifiedGroupsUtility.GetUnifiedGroups(AccessToken, includeSite: !ExcludeSiteUrl.IsPresent, includeClassification:IncludeClassification.IsPresent, includeHasTeam: IncludeHasTeam.IsPresent); } if (group != null) diff --git a/Commands/Graph/NewUnifiedGroup.cs b/Commands/Graph/NewUnifiedGroup.cs index 38c0749f8..523a84ae6 100644 --- a/Commands/Graph/NewUnifiedGroup.cs +++ b/Commands/Graph/NewUnifiedGroup.cs @@ -70,7 +70,7 @@ protected override void ExecuteCmdlet() if (!Force) { - var candidates = UnifiedGroupsUtility.ListUnifiedGroups(AccessToken, + var candidates = UnifiedGroupsUtility.GetUnifiedGroups(AccessToken, mailNickname: MailNickname, endIndex: 1); // ListUnifiedGroups retrieves groups with starts-with, so need another check From 5419cb55041597df59614ef3b4c9189e4e8073b6 Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Tue, 9 Jun 2020 22:55:35 +0200 Subject: [PATCH 2/2] Adding credits to changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3e283177..e360d223d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Changed ### Contributors - +- Gautam Sheth [gautamdsheth] ## [3.22.2006.0]