Forum Discussion
"My Groups" list for SharePoint Homepage Web Part
Pure beauty :-)
Some things I didn't know and might be helpful to others:
- don't forget to change @buckman.com to the domain you use for your O365 groups (I wonder if the script can be updated to detect the domain since you can use multiple domains?)
- you can download the dll's from https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM (just download the nuget package and change the extension to zip)
- Roldefinitions are localized so instead of $clientContext.Web.RoleDefinitions.GetByName("Read"), I had to use GetByName("Lezen"); (check the permission levels on your list)
- if you have 1000+ groups, you could try get-unifiedgroup -resultsize unlimited
Thanks!
- Brent EllisFeb 13, 2017Silver ContributorThanks Bart! This is my quick and dirty attempt to solve an immediate need, thought I sanitized it enough before pasting but missed the domain :)
I'm hardly a powershell expert, but more than armed and dangerous, so I'm sure there are many more efficiencies to be had.- Brent EllisFeb 21, 2017Silver Contributor
Got my first end-user visual set up for including on our home page. I'm using the Group title, with selectable icons underneath to each workload. Have a quick filter text box to narrow down groups and a small pagination to save real estate. Then a link at the bottom to go to our "Informational" page about Groups.
- bart_vermeerschFeb 23, 2017Iron Contributor
We've hit a road block woth this, I'm not sure why.
The groups are visible in the generated list for a member of that group, but the search remains empty for that user unless we manually/explicitely give the member rights (which he already has through the group).
When checking the privileges of a user on an item, it is given by the O365 group, but the item is only visible in the search until the privileges are given directly.
It looks like the search is unable to resolve the group members when crawling. It is strange that this is working in your tenant.