pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Update group description by using "Set-PnPGroup" did not work correctly #1690

Open TomDeu opened 6 years ago

TomDeu commented 6 years ago

Reporting an Issue or Missing Feature

Issue

Expected behavior

Updated group description should be displayed in browser > website settings

Actual behavior

Using Set-PnPGroup -Description to update the group description did not update the description which is displayed for the specific group in website settings on the SharePoint website. When trying to get the updated description through Get-PnPGroup within the PowerShell, the updated description shows up correctly.

Steps to reproduce behavior

$myGroup = Get-PnPGroup -Identity "test group" Set-PnPGroup -Identity $myGroup -Description "updated description"

$grp = Get-PnPGroup -Identity "test group" $grp.Description

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

2.26.18

How did you install the PnP-PowerShell Cmdlets?

TomDeu commented 6 years ago

tried it again, but waiting time did not help for me. I found another solution by unsing the SiteUserInfoList to set description

$MyGroup = $groups | Where-Object{$_.Title -eq "xxx"} $groupinfo_GroupOwner = $web.SiteUserInfoList.GetItemById($MyGroup.Id) $ctx.Load($groupinfo_GroupOwner) $groupinfo_GroupOwner["Notes"] = "New desc" $groupinfo_GroupOwner.Update() Execute-PnPQuery

Thomas Deuerling Abteilung Informatik – Betrieb

HUK-COBURG Bahnhofsplatz 96444 Coburg Telefon: 09561 96-44580 Telefax: 09561 96-44900 E-Mail: Thomas.Deuerling@huk-coburg.de Internet: www.huk.de


HUK-COBURG Haftpflicht-Unterstützungs-Kasse kraftfahrender Beamter Deutschlands a. G. in Coburg Reg.-Gericht Coburg HRB 100; St.-Nr. 9212/101/00021 Sitz der Gesellschaft: Bahnhofsplatz, 96444 Coburg Vorsitzender des Aufsichtsrats: Prof. Dr. Heinrich R. Schradin. Vorstand: Klaus-Jürgen Heitmann (Sprecher), Stefan Gronbach, Dr. Hans Olav Herøy, Dr. Jörg Rheinländer (stv.), Sarah Rössler, Daniel Thomas.


Diese Nachricht enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Nachricht ist nicht gestattet.

This information may contain confidential and/or privileged information. If you are not the intended recipient (or have received this information in error) please notify the sender immediately and destroy this information. Any unauthorized copying, disclosure or distribution of the material in this information is strictly forbidden.


Von: chrisforbesblogs notifications@github.com Gesendet: Mittwoch, 12. September 2018 08:48 An: SharePoint/PnP-PowerShell PnP-PowerShell@noreply.github.com Cc: Deuerling, Thomas Thomas.Deuerling@huk-coburg.de; Author author@noreply.github.com Betreff: Re: [SharePoint/PnP-PowerShell] Update group description by using "Set-PnPGroup" did not work correctly (#1690)

I noticed this did work eventually, there was a few minute delay before the description passes through. For example when viewing the group description in AAD you can see the change, but from the office admin ui you don't see the change for approx. 5~10 mins.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/SharePoint/PnP-PowerShell/issues/1690#issuecomment-420532007, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ao0YQbQJPHEjPoaysAgq4WpiT0aHB5Nvks5uaK4tgaJpZM4WRLCW.