Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
wizofaus opened this issue Jan 30, 2024 · 5 comments
Closed
1 task done
Assignees
Labels
area: model 📐 Related to the core SDK models help wanted Extra attention is needed

Comments

@wizofaus
Copy link

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

@jansenbe jansenbe added the area: model 📐 Related to the core SDK models label Jan 30, 2024
@jansenbe
Copy link
Contributor

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

@jansenbe jansenbe added the help wanted Extra attention is needed label Jan 30, 2024
@wizofaus
Copy link
Author

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).

jansenbe added a commit that referenced this issue Feb 15, 2024
@jansenbe
Copy link
Contributor

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

@jansenbe jansenbe self-assigned this Feb 15, 2024
@wizofaus
Copy link
Author

Thanks!

@wizofaus
Copy link
Author

BTW when is the next planned nuget release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: model 📐 Related to the core SDK models help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants