Forum Discussion

wit4r7's avatar
wit4r7
Brass Contributor
Apr 21, 2020

How to show "Role" of People Webpart

Hey,

 

I try to create and maintain a People Webpart on a Modern Page using PowerShell.

This works so far. I set the properties with the following command:

 

$properties= '{"layout":1, "persons":[{"id": "test1@test.dev", "role": "Director"},{"id": "test2@test.dev", "role": "Manager"}]}'

Set-PnPClientSideWebPart -Page Home -Identity 0154f2f1-02a3-489a-bad1-ae78f6en7765 -PropertiesJson $properties

 

It sets the property correctly. I see this both in the PowerShell and when I call up the page briefly.

As soon as the page has finished loading, my description is no longer visible.

 

I use the compact view of the webpart.

 

How can I display the role permanently?

 

Thanks a lot!

 

 

No RepliesBe the first to reply

Resources