pnp / pnpcore

The PnP Core SDK is a modern .NET SDK designed to work for Microsoft 365. It provides a unified object model for working with SharePoint Online and Teams which is agnostic to the underlying API's being called

Home Page:https://aka.ms/pnp/coresdk/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add "Groups" property to ISharePointUser and allow fetching list via request to load Web

wizofaus opened this issue · comments

Category

  • Feature request

Describe the feature

Currently can't find a straightforward way to get list of SharePoint SiteGroups that the user belongs to. It's simple in the PNP JS library (web.currentUser.groups()).

Describe the solution you'd like

ISharePointUser should have a Groups property (that you can choose to expand while loading a web/user etc.)

Additional context

@wizofaus : that makes sense, Groups is an expandable property of SP.User in REST.

I'm not opposed to contributing a fix to this if I get the time, given I need the functionality (I think I have a workaround but not sure it works in all cases).

@wizofaus : the Groups property has been added to ISharePointUser. This change will appear in the next nightly, closing this issue now.

Thanks!

BTW when is the next planned nuget release?